From 952b169167bc562be17d4022d8be06978c8a61aa Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 13 Apr 2020 17:36:16 +0200 Subject: [PATCH] luci-app-firewall: tools/firewall.js: honour readonly property Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/tools/firewall.js | 1 + 1 file changed, 1 insertion(+) 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); -- 2.25.1