modules/admin-full: revert wifi_join.htm from previous commit
[project/luci.git] / modules / admin-full / luasrc / view / admin_network / wifi_join.htm
index af5f5e1..4dea9ba 100644 (file)
@@ -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%>
@@ -109,7 +114,7 @@ $Id$
 
                                                <input type="hidden" name="clbridge" value="<%=iw.type == "wl" and 1 or 0%>" />
 
-                                               <input class="cbi-button-apply" type="submit" value="Join Network" />
+                                               <input class="cbi-button-apply" type="submit" value="<%:Join Network%>" />
                                        </form>
                                </td>
                        </tr>