diff --git a/src/opnsense/mvc/app/views/OPNsense/IDS/index.volt b/src/opnsense/mvc/app/views/OPNsense/IDS/index.volt index 3ac02f27d..a3259dc1c 100644 --- a/src/opnsense/mvc/app/views/OPNsense/IDS/index.volt +++ b/src/opnsense/mvc/app/views/OPNsense/IDS/index.volt @@ -106,19 +106,21 @@ POSSIBILITY OF SUCH DAMAGE. } // load initial data - mapDataToFormUI(data_get_map).done(function(data){ - // set schedule updates link to cron - $.each(data.frm_GeneralSettings.ids.general.UpdateCron, function(key, value) { - if (value.selected == 1) { - $("#scheduled_updates").attr("href","/ui/cron/item/open/"+key); - $("#scheduled_updates").show(); - } + function loadGeneralSettings() { + mapDataToFormUI(data_get_map).done(function(data){ + // set schedule updates link to cron + $.each(data.frm_GeneralSettings.ids.general.UpdateCron, function(key, value) { + if (value.selected == 1) { + $("#scheduled_updates").attr("href","/ui/cron/item/open/"+key); + $("#scheduled_updates").show(); + } + }); + formatTokenizersUI(); + $('.selectpicker').selectpicker('refresh'); }); - //alert(JSON.stringify(data.frm_GeneralSettings.ids.general.UpdateCron)); - formatTokenizersUI(); - $('.selectpicker').selectpicker('refresh'); - }); + } + loadGeneralSettings(); updateStatus(); /** @@ -244,6 +246,7 @@ POSSIBILITY OF SUCH DAMAGE. $("#updateRulesAct_progress").removeClass("fa fa-spinner fa-pulse"); $('#grid-rule-files').bootgrid('reload'); updateStatus(); + loadGeneralSettings(); }); }); @@ -272,16 +275,16 @@ POSSIBILITY OF SUCH DAMAGE.
- rulesets + {{ lang._('rulesets') }}
- - - + + + @@ -307,10 +310,10 @@ POSSIBILITY OF SUCH DAMAGE. - - - - + + + + @@ -329,11 +332,11 @@ POSSIBILITY OF SUCH DAMAGE.
enableddescriptionlast updated{{ lang._('Enabled') }}{{ lang._('Description') }}{{ lang._('Last updated') }}
sidSourceClassTypeMessageinfo / enabled{{ lang._('Source') }}{{ lang._('ClassType') }}{{ lang._('Message') }}{{ lang._('Info / enabled') }}
- - - - - + + + + + @@ -342,8 +345,10 @@ POSSIBILITY OF SUCH DAMAGE.

- - + + +
+ {{ lang._('Please use "Download & Update Rules" to fetch your initial ruleset, automatic updating can be scheduled after the first download') }}
timestampsourcedestinationAlertinfo{{ lang._('Timestamp') }}{{ lang._('Source') }}{{ lang._('Destination') }}{{ lang._('Alert') }}{{ lang._('Info') }}