From: Jo-Philipp Wich Date: Mon, 13 Apr 2020 15:36:16 +0000 (+0200) Subject: luci-app-firewall: tools/firewall.js: honour readonly property X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=952b169167bc562be17d4022d8be06978c8a61aa;p=oweals%2Fluci.git luci-app-firewall: tools/firewall.js: honour readonly property Signed-off-by: Jo-Philipp Wich --- 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 e85b6bc6e..32998c2ff 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);