luci-base: tools/widgets.js: honour readonly property
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
9279448148
commit
0f8e5b2536
1 changed files with 3 additions and 0 deletions
|
@ -134,6 +134,7 @@ var CBIZoneSelect = form.ListValue.extend({
|
||||||
sort: true,
|
sort: true,
|
||||||
multiple: this.multiple,
|
multiple: this.multiple,
|
||||||
optional: this.optional || this.rmempty,
|
optional: this.optional || this.rmempty,
|
||||||
|
disabled: this.readonly,
|
||||||
select_placeholder: E('em', _('unspecified')),
|
select_placeholder: E('em', _('unspecified')),
|
||||||
display_items: this.display_size || this.size || 3,
|
display_items: this.display_size || this.size || 3,
|
||||||
dropdown_items: this.dropdown_size || this.size || 5,
|
dropdown_items: this.dropdown_size || this.size || 5,
|
||||||
|
@ -388,6 +389,7 @@ var CBINetworkSelect = form.ListValue.extend({
|
||||||
sort: true,
|
sort: true,
|
||||||
multiple: this.multiple,
|
multiple: this.multiple,
|
||||||
optional: this.optional || this.rmempty,
|
optional: this.optional || this.rmempty,
|
||||||
|
disabled: this.readonly,
|
||||||
select_placeholder: E('em', _('unspecified')),
|
select_placeholder: E('em', _('unspecified')),
|
||||||
display_items: this.display_size || this.size || 3,
|
display_items: this.display_size || this.size || 3,
|
||||||
dropdown_items: this.dropdown_size || this.size || 5,
|
dropdown_items: this.dropdown_size || this.size || 5,
|
||||||
|
@ -555,6 +557,7 @@ var CBIDeviceSelect = form.ListValue.extend({
|
||||||
sort: order,
|
sort: order,
|
||||||
multiple: this.multiple,
|
multiple: this.multiple,
|
||||||
optional: this.optional || this.rmempty,
|
optional: this.optional || this.rmempty,
|
||||||
|
disabled: this.readonly,
|
||||||
select_placeholder: E('em', _('unspecified')),
|
select_placeholder: E('em', _('unspecified')),
|
||||||
display_items: this.display_size || this.size || 3,
|
display_items: this.display_size || this.size || 3,
|
||||||
dropdown_items: this.dropdown_size || this.size || 5,
|
dropdown_items: this.dropdown_size || this.size || 5,
|
||||||
|
|
Loading…
Reference in a new issue