diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-26 20:12:06 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-26 20:12:06 +0000 |
commit | ff11e3ae56f3b77402ce98064bbbdc099873340e (patch) | |
tree | 0d37867fd49ee5a102a95b63269564bedeba50b5 /usr | |
parent | 7074329ab0e1f3fa99319b1cd67ba663ce8bdef2 (diff) | |
download | pfsense-ff11e3ae56f3b77402ce98064bbbdc099873340e.zip pfsense-ff11e3ae56f3b77402ce98064bbbdc099873340e.tar.gz |
MFC fix reverse logging
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/diag_logs_filter_dynamic.php | 8 |
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'); |