summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-26 20:12:06 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-26 20:12:06 +0000
commitff11e3ae56f3b77402ce98064bbbdc099873340e (patch)
tree0d37867fd49ee5a102a95b63269564bedeba50b5 /usr
parent7074329ab0e1f3fa99319b1cd67ba663ce8bdef2 (diff)
downloadpfsense-ff11e3ae56f3b77402ce98064bbbdc099873340e.zip
pfsense-ff11e3ae56f3b77402ce98064bbbdc099873340e.tar.gz
MFC fix reverse logging
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/diag_logs_filter_dynamic.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/local/www/diag_logs_filter_dynamic.php b/usr/local/www/diag_logs_filter_dynamic.php
index f6885e4..7ad59c9 100755
--- a/usr/local/www/diag_logs_filter_dynamic.php
+++ b/usr/local/www/diag_logs_filter_dynamic.php
@@ -350,11 +350,13 @@ function update_div_rows(data) {
*/
if(isReverse == false) {
for (var i = numrows-1; i > 1; i--) {
- rows[i].innerHTML = rows[i-1].innerHTML;
+ previousrecord = i - 1;
+ rows[i].innerHTML = rows[previousrecord].innerHTML;
}
} else {
- for (var i = 1; i < numrows+1; i++) {
- rows[i].innerHTML = rows[i-1].innerHTML;
+ for (var i = 2; i < numrows - 1; i++) {
+ nextrecord = i + 1;
+ rows[i].innerHTML = rows[nextrecord].innerHTML;
}
}
var item = document.getElementById('firstrow');
OpenPOWER on IntegriCloud