summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorN0YB <Al_Stu@Frontier.com>2012-12-07 02:42:21 -0800
committerN0YB <Al_Stu@Frontier.com>2012-12-07 02:42:21 -0800
commitcbeed539364ca124c0f99f902ccfeb918cf0129c (patch)
tree64e0495c9ad20695f28c451ca28594f715b3bc83 /usr/local
parent4cfcbd3253fe9d389c3886220015152aa31fe853 (diff)
downloadpfsense-cbeed539364ca124c0f99f902ccfeb918cf0129c.zip
pfsense-cbeed539364ca124c0f99f902ccfeb918cf0129c.tar.gz
Update usr/local/www/javascript/filter_log.js
Firewall Logs Widget FilteringOptions to filter on interfaces, 'pass', 'block', & 'reject'
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/javascript/filter_log.js17
1 files changed, 15 insertions, 2 deletions
diff --git a/usr/local/www/javascript/filter_log.js b/usr/local/www/javascript/filter_log.js
index 76c21e2..49c11a4 100644
--- a/usr/local/www/javascript/filter_log.js
+++ b/usr/local/www/javascript/filter_log.js
@@ -1,4 +1,3 @@
-
if (typeof getURL == 'undefined') {
getURL = function(url, callback) {
if (!url)
@@ -61,12 +60,26 @@ function fetch_new_rules_callback(callback_data) {
/* loop through rows */
row_split = data_split[x].split("||");
lastsawtime = row_split[6];
- new_data_to_add[new_data_to_add.length] = format_log_line(row_split);
+
+ var tmp = format_log_line(row_split);
+ if ( !(tmp) ) continue;
+
+ new_data_to_add[new_data_to_add.length] = tmp;
}
update_div_rows(new_data_to_add);
isBusy = false;
}
+function in_arrayi(needle, haystack) {
+ var i = haystack.length;
+ while (i--) {
+ if (haystack[i].toLowerCase() === needle.toLowerCase()) {
+ return true;
+ }
+ }
+ return false;
+}
+
function update_div_rows(data) {
if(isPaused)
return;
OpenPOWER on IntegriCloud