summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-admin-full/luasrc/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-07-15 13:14:24 +0200
committerJo-Philipp Wich <jo@mein.io>2018-07-15 13:14:24 +0200
commitf6ffc3d739ef48c3186b3313e2480c8787f42fcd (patch)
tree3a901ac8b1e93d169f4a721b0f69566108467d4d /modules/luci-mod-admin-full/luasrc/view
parentf29b2a2652efeb6c0fb21edbff0b1ea0326d380a (diff)
luci-mod-admin-full: fix wifi add and scan actions
Due to conversion to CBI, the inline forms are now nested and thus do not work anymore. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-admin-full/luasrc/view')
-rw-r--r--modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_overview_status.htm8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_overview_status.htm b/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_overview_status.htm
index 9730bc2c92..cc6db1721f 100644
--- a/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_overview_status.htm
+++ b/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_overview_status.htm
@@ -26,6 +26,14 @@
{ token: '<%=token%>' }, XHR.run);
}
+ function wifi_action(ev, action) {
+ var i = ev.target,
+ e = i.getAttribute('data-radio');
+
+ i.parentNode.appendChild(E('input', { type: 'hidden', name: 'device', value: e }));
+ i.form.action = '<%=url('admin/network/wireless_')%>' + action;
+ }
+
var networks = [ ];
document.querySelectorAll('[data-network]').forEach(function(n) {