luci-app-firewall: tools/firewall.js: honour readonly property

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2020-04-13 17:36:16 +02:00
parent 0f8e5b2536
commit 952b169167

View file

@ -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);