diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-11-16 00:04:28 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-11-16 00:04:28 +0000 |
commit | ce8855055915b91d6a388f9967c0244f8be8921b (patch) | |
tree | 7c112aaaced3764d83b8b33d296b167d5c1d795a /modules/admin-full/luasrc/view | |
parent | 3386d649ea5c7b98ab654e0ae9c7228615b476b2 (diff) |
modules/admin-full: fix wifi join
Diffstat (limited to 'modules/admin-full/luasrc/view')
-rw-r--r-- | modules/admin-full/luasrc/view/admin_network/wifi_join.htm | 5 | ||||
-rw-r--r-- | modules/admin-full/luasrc/view/admin_network/wifi_overview.htm | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/view/admin_network/wifi_join.htm b/modules/admin-full/luasrc/view/admin_network/wifi_join.htm index af5f5e1073..a1959a4ee2 100644 --- a/modules/admin-full/luasrc/view/admin_network/wifi_join.htm +++ b/modules/admin-full/luasrc/view/admin_network/wifi_join.htm @@ -67,6 +67,11 @@ $Id$ local dev = luci.http.formvalue("device") local iw = luci.sys.wifi.getiwinfo(dev) + + if not iw then + luci.http.redirect(luci.dispatcher.build_url("admin/network/wireless")) + return + end -%> <%+header%> diff --git a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm index d23a0853a6..d47ad0856c 100644 --- a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm +++ b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm @@ -284,7 +284,7 @@ $Id$ </td> <td class="cbi-value-field" style="width:40px"> <a href="<%=net:adminlink()%>"><img style="border:none" src="<%=resource%>/cbi/edit.gif" alt="<%:Edit this network%>" title="<%:Edit this network%>" /></a> - <a href="<%=luci.dispatcher.build_url("admin/network/wireless_delete", net:ifname())%>"><img style="border:none" src="<%=resource%>/cbi/remove.gif" alt="<%:Delete this network%>" title="<%:Delete this network%>" /></a> + <a href="<%=luci.dispatcher.build_url("admin/network/wireless_delete", net:ifname())%>" onclick="return confirm('<%:Really delete this wireless network? The deletion cannot be undone!\nYou might loose access to this router if you are connected via this network.%>')"><img style="border:none" src="<%=resource%>/cbi/remove.gif" alt="<%:Delete this network%>" title="<%:Delete this network%>" /></a> </td> </tr> <% end %> |