diff options
Diffstat (limited to 'applications/luci-app-vpnbypass/luasrc/view/vpnbypass/js.htm')
-rw-r--r-- | applications/luci-app-vpnbypass/luasrc/view/vpnbypass/js.htm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/applications/luci-app-vpnbypass/luasrc/view/vpnbypass/js.htm b/applications/luci-app-vpnbypass/luasrc/view/vpnbypass/js.htm index 76809e9387..8e47a97590 100644 --- a/applications/luci-app-vpnbypass/luasrc/view/vpnbypass/js.htm +++ b/applications/luci-app-vpnbypass/luasrc/view/vpnbypass/js.htm @@ -1,3 +1,4 @@ +<%- if luci.dispatcher.lookup("admin/vpn") then node = "vpn" else node = "services" end -%> <script type="text/javascript"> //<![CDATA[ @@ -32,7 +33,7 @@ btn_enable.disabled = true; btn_disable.disabled = true; spinner(btn_spinner, 1); - xhr.get('<%=luci.dispatcher.build_url("admin", "services", "vpnbypass", "action")%>/' + action.name, null, + xhr.get('<%=luci.dispatcher.build_url("admin", node, "vpnbypass", "action")%>/' + action.name, null, function (x) { if (!x) { return; |