Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/luci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-04-13 18:36:16 +0300
committerJo-Philipp Wich <jo@mein.io>2020-04-14 18:09:12 +0300
commit952b169167bc562be17d4022d8be06978c8a61aa (patch)
tree18b1b16f116a701c317e0466135d22da944de590 /applications/luci-app-firewall/htdocs
parent0f8e5b2536d1226b98ff14c78663bd21736e08a3 (diff)
luci-app-firewall: tools/firewall.js: honour readonly property
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-firewall/htdocs')
-rw-r--r--applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js b/applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js
index e85b6bc6ea..32998c2ff8 100644
--- a/applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js
+++ b/applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js
@@ -537,6 +537,7 @@ return baseclass.extend({
display_items: 10,
dropdown_items: -1,
create: true,
+ disabled: (this.readonly != null) ? this.readonly : this.map.readonly,
validate: function(value) {
var v = L.toArray(value);