summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-vpnbypass/luasrc/view/vpnbypass
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.net>2019-10-28 16:34:54 -0700
committerStan Grishin <stangri@melmac.net>2019-10-28 16:34:54 -0700
commitc145ad0cbf9bd71ef162772bcd3d4622f4023351 (patch)
treea4e678e05f6db36908c0befe541ffc8522883f98 /applications/luci-app-vpnbypass/luasrc/view/vpnbypass
parent7707b679e20df9806fbcbc58d12116f9ee9a3850 (diff)
luci-app-vpnbypass: bugfix: call to action has no parent node
Signed-off-by: Stan Grishin <stangri@melmac.net>
Diffstat (limited to 'applications/luci-app-vpnbypass/luasrc/view/vpnbypass')
-rw-r--r--applications/luci-app-vpnbypass/luasrc/view/vpnbypass/js.htm3
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;