summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static
diff options
context:
space:
mode:
authorPaul Donald <newtwen@gmail.com>2024-01-31 03:29:16 +0100
committerPaul Donald <newtwen@gmail.com>2024-01-31 03:39:02 +0100
commit8a0ee6689f18e9f14965b45f8c79211644c9b58a (patch)
tree23524654b103ccf4c0092951b31766030fe26ab7 /modules/luci-base/htdocs/luci-static
parent2dc1fccbd1f46d3fa2689cc1eae3899e5a807a4f (diff)
luci-mod-network: add disabled option for interface
Enabled by default. If the interface is in use, the user will be asked to confirm. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/ui.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js
index 98dc5add59..df66f2bb1d 100644
--- a/modules/luci-base/htdocs/luci-static/resources/ui.js
+++ b/modules/luci-base/htdocs/luci-static/resources/ui.js
@@ -4539,7 +4539,8 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
for (var j = 0; this.changes && this.changes.network && j < this.changes.network.length; j++) {
var chg = this.changes.network[j];
- if (chg[0] == 'set' && chg[1] == iif && (chg[2] == 'proto' || chg[2] == 'ipaddr' || chg[2] == 'netmask'))
+ if (chg[0] == 'set' && chg[1] == iif &&
+ ((chg[2] == 'disabled' && chg[3] == '1') || chg[2] == 'proto' || chg[2] == 'ipaddr' || chg[2] == 'netmask'))
return iif;
}
}