Merge pull request #743 from HenryGiraldo/master
authorJo-Philipp Wich <jo@mein.io>
Fri, 8 Jul 2016 13:18:21 +0000 (15:18 +0200)
committerGitHub <noreply@github.com>
Fri, 8 Jul 2016 13:18:21 +0000 (15:18 +0200)
Closes #741: Can't delete disabled wireless networks

modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_overview.htm

index 1df6b28..9c351d3 100644 (file)
                                        <td class="cbi-value-field" style="width:310px;text-align:right">
                                                <input id="<%=net:id()%>-iw-toggle" type="button" class="cbi-button cbi-button-reload" style="width:100px" onclick="wifi_shutdown('<%=net:id()%>', this)" title="<%:Delete this network%>" value="<%:Enable%>" />
                                                <input type="button" class="cbi-button cbi-button-edit" style="width:100px" onclick="location.href='<%=net:adminlink()%>'" title="<%:Edit this network%>" value="<%:Edit%>" />
-                                               <input type="button" class="cbi-button cbi-button-remove" style="width:100px" onclick="wifi_delete('<%=net:ifname()%>')" title="<%:Delete this network%>" value="<%:Remove%>" />
+                                               <input type="button" class="cbi-button cbi-button-remove" style="width:100px" onclick="wifi_delete('<%=net:id()%>')" title="<%:Delete this network%>" value="<%:Remove%>" />
                                        </td>
                                </tr>
                                <% end %>