From 1e2cc4e4d722ed47cb7cf23c836587c0a1fa35ae Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Wed, 1 Jul 2015 18:26:38 +0200 Subject: [PATCH] (cron) when editing from another service, reconfigure cron on save --- src/opnsense/mvc/app/views/OPNsense/Cron/index.volt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/opnsense/mvc/app/views/OPNsense/Cron/index.volt b/src/opnsense/mvc/app/views/OPNsense/Cron/index.volt index e2590a4cf..6a657b0eb 100644 --- a/src/opnsense/mvc/app/views/OPNsense/Cron/index.volt +++ b/src/opnsense/mvc/app/views/OPNsense/Cron/index.volt @@ -56,10 +56,11 @@ POSSIBILITY OF SUCH DAMAGE. $("#btn_"+editDlg+"_save").unbind('click').click(function(){ saveFormToEndpoint(url=setUrl+uuid, formid='frm_' + editDlg, callback_ok=function(){ - $("#"+editDlg).modal('hide'); - $("#grid-jobs").bootgrid("reload"); + // do reconfigure of cron after save (because we're leaving back to the sender) + ajaxCall(url="/api/cron/service/reconfigure", sendData={}, callback=function(data,status) { + $("#"+editDlg).modal('hide'); + }); }, true); - // go back to where we came from. }); }