diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-04-14 17:12:47 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-04-14 17:12:47 +0200 |
commit | c89fd0a7f324bb6c0ebd803f542bb63d49e41984 (patch) | |
tree | 518e65e22859c8fbc7bd9dca9d86efe41a376a13 | |
parent | b6e93d54a0f9c6be310e07a66ac08532ba6400b0 (diff) |
luci-base: tools/widgets.js: honour map readonly property too
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/tools/widgets.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js index 38693c5b09..7f724a17e4 100644 --- a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js +++ b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js @@ -134,7 +134,7 @@ var CBIZoneSelect = form.ListValue.extend({ sort: true, multiple: this.multiple, optional: this.optional || this.rmempty, - disabled: this.readonly, + disabled: (this.readonly != null) ? this.readonly : this.map.readonly, select_placeholder: E('em', _('unspecified')), display_items: this.display_size || this.size || 3, dropdown_items: this.dropdown_size || this.size || 5, @@ -389,7 +389,7 @@ var CBINetworkSelect = form.ListValue.extend({ sort: true, multiple: this.multiple, optional: this.optional || this.rmempty, - disabled: this.readonly, + disabled: (this.readonly != null) ? this.readonly : this.map.readonly, select_placeholder: E('em', _('unspecified')), display_items: this.display_size || this.size || 3, dropdown_items: this.dropdown_size || this.size || 5, @@ -557,7 +557,7 @@ var CBIDeviceSelect = form.ListValue.extend({ sort: order, multiple: this.multiple, optional: this.optional || this.rmempty, - disabled: this.readonly, + disabled: (this.readonly != null) ? this.readonly : this.map.readonly, select_placeholder: E('em', _('unspecified')), display_items: this.display_size || this.size || 3, dropdown_items: this.dropdown_size || this.size || 5, |