diff --git a/net/mdns-repeater/src/opnsense/mvc/app/controllers/OPNsense/MDNSRepeater/forms/general.xml b/net/mdns-repeater/src/opnsense/mvc/app/controllers/OPNsense/MDNSRepeater/forms/general.xml index 41746493b..ef144e028 100644 --- a/net/mdns-repeater/src/opnsense/mvc/app/controllers/OPNsense/MDNSRepeater/forms/general.xml +++ b/net/mdns-repeater/src/opnsense/mvc/app/controllers/OPNsense/MDNSRepeater/forms/general.xml @@ -1,7 +1,7 @@
diff --git a/net/mdns-repeater/src/opnsense/mvc/app/views/OPNsense/MDNSRepeater/index.volt b/net/mdns-repeater/src/opnsense/mvc/app/views/OPNsense/MDNSRepeater/index.volt index aaa584e62..2fd4858d2 100644 --- a/net/mdns-repeater/src/opnsense/mvc/app/views/OPNsense/MDNSRepeater/index.volt +++ b/net/mdns-repeater/src/opnsense/mvc/app/views/OPNsense/MDNSRepeater/index.volt @@ -41,10 +41,12 @@ $( document ).ready(function() { // link save button to API set action $("#saveAct").click(function(){ saveFormToEndpoint(url="/api/mdnsrepeater/settings/set", formid='general',callback_ok=function(){ + $("#saveAct_progress").addClass("fa fa-spinner fa-pulse"); ajaxCall(url="/api/mdnsrepeater/service/restart", sendData={}, callback=function(data,status) { ajaxCall(url="/api/mdnsrepeater/service/status", sendData={}, callback=function(data,status) { updateServiceStatusUI(data['result']); }); + $("#saveAct_progress").removeClass("fa fa-spinner fa-pulse"); }); }); }); @@ -54,8 +56,8 @@ $( document ).ready(function() {