diff --git a/src/opnsense/mvc/app/views/OPNsense/CaptivePortal/index.volt b/src/opnsense/mvc/app/views/OPNsense/CaptivePortal/index.volt index bdb62aaa3..20974c0e5 100644 --- a/src/opnsense/mvc/app/views/OPNsense/CaptivePortal/index.volt +++ b/src/opnsense/mvc/app/views/OPNsense/CaptivePortal/index.volt @@ -119,22 +119,7 @@ POSSIBILITY OF SUCH DAMAGE. /** * Reconfigure */ - $("#reconfigureAct").click(function(){ - $("#reconfigureAct_progress").addClass("fa fa-spinner fa-pulse"); - ajaxCall("/api/captiveportal/service/reconfigure", {}, function(data,status) { - // when done, disable progress animation. - $("#reconfigureAct_progress").removeClass("fa fa-spinner fa-pulse"); - - if (status != "success" || data['status'] != 'ok') { - BootstrapDialog.show({ - type: BootstrapDialog.TYPE_WARNING, - title: "{{ lang._('Error reconfiguring captiveportal') }}", - message: data['status'], - draggable: true - }); - } - }); - }); + $("#reconfigureAct").SimpleActionButton(); /************************************************************************************************************* * File upload action, template dialog @@ -237,7 +222,12 @@ POSSIBILITY OF SUCH DAMAGE. {{ lang._('After changing settings, please remember to apply them with the button below') }}
- +