diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-03-04 12:58:22 -0500 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-03-04 12:58:22 -0500 |
commit | 15cdf2213efa54130a0962d5a22d30df7cc0cefe (patch) | |
tree | abc6501dd9f607222b5d28ccd0ad26b906846ac8 /config/suricata/suricata_alerts.js | |
parent | 09ee53a7c9bbb16772b6db52da8b4f4f70338616 (diff) | |
download | pfsense-packages-15cdf2213efa54130a0962d5a22d30df7cc0cefe.tar.gz pfsense-packages-15cdf2213efa54130a0962d5a22d30df7cc0cefe.tar.bz2 pfsense-packages-15cdf2213efa54130a0962d5a22d30df7cc0cefe.zip |
Revert back to Ajax.url() call in widget because getURL() not in 2.1 -- oops!
Diffstat (limited to 'config/suricata/suricata_alerts.js')
-rw-r--r-- | config/suricata/suricata_alerts.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/config/suricata/suricata_alerts.js b/config/suricata/suricata_alerts.js index db95bd0c..9e5b0b29 100644 --- a/config/suricata/suricata_alerts.js +++ b/config/suricata/suricata_alerts.js @@ -6,7 +6,7 @@ var suricataisPaused = false; function suricata_alerts_fetch_new_rules_callback(callback_data) { var data_split; var new_data_to_add = Array(); - var data = callback_data.content; + var data = callback_data; data_split = data.split("\n"); @@ -61,7 +61,14 @@ function fetch_new_surialerts() { return; suricataisBusy = true; - getURL('/widgets/widgets/suricata_alerts.widget.php?getNewAlerts=' + new Date().getTime(), suricata_alerts_fetch_new_rules_callback); + + jQuery.ajax('/widgets/widgets/suricata_alerts.widget.php?getNewAlerts=' + new Date().getTime(), { + type: 'GET', + dataType: 'text', + success: function(data) { + suricata_alerts_fetch_new_rules_callback(data); + } + }); } function suricata_alerts_toggle_pause() { |