summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-04-13 16:55:49 +0200
committerJo-Philipp Wich <jo@mein.io>2020-04-14 17:09:12 +0200
commit0f8e5b2536d1226b98ff14c78663bd21736e08a3 (patch)
tree6fda6df1a4eeb41abdfccc0c89a81a92848e3b5a /modules/luci-base/htdocs
parent9279448148052950121d7ce205bdd6a1ee353b2e (diff)
luci-base: tools/widgets.js: honour readonly property
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/tools/widgets.js3
1 files changed, 3 insertions, 0 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 9cc3e26ed..38693c5b0 100644
--- a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
+++ b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js
@@ -134,6 +134,7 @@ var CBIZoneSelect = form.ListValue.extend({
sort: true,
multiple: this.multiple,
optional: this.optional || this.rmempty,
+ disabled: this.readonly,
select_placeholder: E('em', _('unspecified')),
display_items: this.display_size || this.size || 3,
dropdown_items: this.dropdown_size || this.size || 5,
@@ -388,6 +389,7 @@ var CBINetworkSelect = form.ListValue.extend({
sort: true,
multiple: this.multiple,
optional: this.optional || this.rmempty,
+ disabled: this.readonly,
select_placeholder: E('em', _('unspecified')),
display_items: this.display_size || this.size || 3,
dropdown_items: this.dropdown_size || this.size || 5,
@@ -555,6 +557,7 @@ var CBIDeviceSelect = form.ListValue.extend({
sort: order,
multiple: this.multiple,
optional: this.optional || this.rmempty,
+ disabled: this.readonly,
select_placeholder: E('em', _('unspecified')),
display_items: this.display_size || this.size || 3,
dropdown_items: this.dropdown_size || this.size || 5,