summaryrefslogtreecommitdiffstats
path: root/usr/local/www/javascript/filter_log.js
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-08-04 14:39:17 -0400
committerjim-p <jimp@pfsense.org>2010-08-04 14:44:38 -0400
commitbca84296275708a7c1e2467082e94ed5b5d9cb50 (patch)
treed6d125c2ee3539b3bb0d666383a04b82faa7697e /usr/local/www/javascript/filter_log.js
parent4cea5cf8ab9b06ccd414a783c1b7cb40e5961bf4 (diff)
downloadpfsense-bca84296275708a7c1e2467082e94ed5b5d9cb50.zip
pfsense-bca84296275708a7c1e2467082e94ed5b5d9cb50.tar.gz
Use prototype selectors here, and ensure we use only the log rows. Should fix the rare occasion where a rapid dynamic log update would overwrite the header row.
Diffstat (limited to 'usr/local/www/javascript/filter_log.js')
-rw-r--r--usr/local/www/javascript/filter_log.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/javascript/filter_log.js b/usr/local/www/javascript/filter_log.js
index b34d7f1..e062f37 100644
--- a/usr/local/www/javascript/filter_log.js
+++ b/usr/local/www/javascript/filter_log.js
@@ -74,8 +74,10 @@ function update_div_rows(data) {
var isIE = navigator.appName.indexOf('Microsoft') != -1;
var isSafari = navigator.userAgent.indexOf('Safari') != -1;
var isOpera = navigator.userAgent.indexOf('Opera') != -1;
- var rulestable = document.getElementById('log');
- var rows = rulestable.getElementsByTagName('div');
+ var rows = $$('log-entry-mini');
+ if (rows.length == 0) {
+ rows = $$('log-entry');
+ }
var showanim = 1;
if (isIE) {
showanim = 0;
OpenPOWER on IntegriCloud