forked from extern/egroupware
Add readonly value to readonly option
This commit is contained in:
parent
1dc1d07dea
commit
0748fba70f
@ -140,10 +140,11 @@ var et2_radiobox = /** @class */ (function (_super) {
|
||||
};
|
||||
/**
|
||||
* Set radio readonly attribute.
|
||||
* Do not confuse this with etemplate readonly, which would use et_textbox_ro instead
|
||||
*
|
||||
* @param _readonly Boolean
|
||||
*/
|
||||
et2_radiobox.prototype.set_readonly = function (_readonly) {
|
||||
this.options.readonly = _readonly;
|
||||
this.getRoot().iterateOver(function (radio) {
|
||||
if (radio.id == this.id) {
|
||||
radio.input.prop('disabled', _readonly);
|
||||
|
@ -174,11 +174,12 @@ class et2_radiobox extends et2_inputWidget
|
||||
|
||||
/**
|
||||
* Set radio readonly attribute.
|
||||
* Do not confuse this with etemplate readonly, which would use et_textbox_ro instead
|
||||
*
|
||||
* @param _readonly Boolean
|
||||
*/
|
||||
set_readonly(_readonly)
|
||||
{
|
||||
this.options.readonly = _readonly;
|
||||
this.getRoot().iterateOver(function(radio)
|
||||
{
|
||||
if (radio.id == this.id)
|
||||
|
Loading…
Reference in New Issue
Block a user