From 723b0382c06b5ff2bf6d4ecc8a59bd4c29ed7da0 Mon Sep 17 00:00:00 2001 From: Sebastian Hammer Date: Thu, 4 Jan 2007 22:03:56 +0000 Subject: [PATCH] Next-previous links used different page size than retrieval. Introduced setting variable. --- www/test1/search.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/www/test1/search.js b/www/test1/search.js index c3658fc..6c605a1 100644 --- a/www/test1/search.js +++ b/www/test1/search.js @@ -1,4 +1,4 @@ -/* $Id: search.js,v 1.6 2007-01-04 20:00:58 quinn Exp $ +/* $Id: search.js,v 1.7 2007-01-04 22:03:56 quinn Exp $ * --------------------------------------------------- * Javascript container */ @@ -20,6 +20,7 @@ var stattimer; var session_cells = Array('query', 'startrec', 'action_type'); var old_session = session_read(); var url_surveillence; +var recstoshow = 15; function initialize () @@ -169,13 +170,13 @@ function show_records() if (start + num < merged) body.innerHTML += ' Next'; if (start > 0) body.innerHTML += ' Previous'; @@ -208,7 +209,7 @@ function check_search() var url = "search.pz2?" + "command=show" + "&start=" + document.search.startrec.value + - "&num=15" + + "&num=" + recstoshow + "&session=" + session + "&block=1"; xshow = GetXmlHttpObject(); -- 1.7.10.4