aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata/suricata_alerts.js
diff options
context:
space:
mode:
authorRenato Botelho <garga@pfSense.org>2014-03-04 15:22:26 -0300
committerRenato Botelho <garga@pfSense.org>2014-03-04 15:22:26 -0300
commit1d7ea8c5c1aa234eaa6650108e6c4f8095a8352c (patch)
tree1a228b840f3b76b5e39458dcc253f8d077b2aede /config/suricata/suricata_alerts.js
parentac8d8f95e0a3813904c8a160b1a2b460b4e1d434 (diff)
parent15cdf2213efa54130a0962d5a22d30df7cc0cefe (diff)
downloadpfsense-packages-1d7ea8c5c1aa234eaa6650108e6c4f8095a8352c.tar.gz
pfsense-packages-1d7ea8c5c1aa234eaa6650108e6c4f8095a8352c.tar.bz2
pfsense-packages-1d7ea8c5c1aa234eaa6650108e6c4f8095a8352c.zip
Merge pull request #617 from bmeeks8/master
Suricata 1.4.6 pkg. v0.2-BETA -- some small bug fixes
Diffstat (limited to 'config/suricata/suricata_alerts.js')
-rw-r--r--config/suricata/suricata_alerts.js11
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() {