From 58e2200cd8a1d4ecfbfd0b7c91d63bc1d473ec71 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 13 Apr 2020 16:55:49 +0200 Subject: [PATCH] luci-base: tools/widgets.js: honour readonly property Signed-off-by: Jo-Philipp Wich (cherry picked from commit 0f8e5b2536d1226b98ff14c78663bd21736e08a3) --- .../luci-base/htdocs/luci-static/resources/tools/widgets.js | 3 +++ 1 file changed, 3 insertions(+) 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 9cc3e26ed2..38693c5b09 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, -- 2.30.2