luci-app-adblock: respect SimpleForm size limit
[project/luci.git] / modules / luci-base / luasrc / view / cbi / apply_xhr.htm
index 6f63ba8..daa57c1 100644 (file)
@@ -4,10 +4,10 @@
        <script type="text/javascript">//<![CDATA[
                var apply_xhr = new XHR();
 
-               apply_xhr.post('<%=luci.dispatcher.build_url("servicectl", "restart", table.concat(configs, ","))%>', { token: '<%=token%>' },
+               apply_xhr.post('<%=url('servicectl/restart', table.concat(configs, ","))%>', { token: '<%=token%>' },
                        function() {
                                var checkfinish = function() {
-                                       apply_xhr.get('<%=luci.dispatcher.build_url("servicectl", "status")%>', null,
+                                       apply_xhr.get('<%=url('servicectl/status')%>', null,
                                                function(x) {
                                                        if( x.responseText == 'finish' )
                                                        {