summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs/luci-static
diff options
context:
space:
mode:
authorPaul Donald <newtwen@gmail.com>2023-12-31 13:11:41 +0000
committerPaul Donald <newtwen@gmail.com>2023-12-31 13:11:41 +0000
commit032f3056789d01930028ab5eeecac59c17c7e8d6 (patch)
tree88283cdf6605c2d147a37a77e8f0d89fe2bd38d6 /modules/luci-mod-network/htdocs/luci-static
parentcbfa9ca8d6c873cc8e0a1fc50f8fc494be37aef5 (diff)
luci-mod-network: disable 'Edit' button for dynamic interfaces
Otherwise they produce "Cannot read properties of null". Tested on 23.05.2 Fixes issue #6799 Signed-off-by: Paul Donald <newtwen@gmail.com>
Diffstat (limited to 'modules/luci-mod-network/htdocs/luci-static')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js
index 8166ac44b1..a3f2e9e34a 100644
--- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js
+++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js
@@ -537,6 +537,11 @@ return view.extend({
tdEl.lastChild.childNodes[3].disabled = true;
}
+ if (dynamic) {
+ //disable the 'Edit' button on dynamic interfaces
+ tdEl.lastChild.childNodes[2].disabled = true;
+ }
+
return tdEl;
};