forked from extern/egroupware
Etemplate - allow trees to be readonly
This commit is contained in:
parent
90474d6163
commit
d2bac9d654
@ -257,6 +257,10 @@ var et2_tree = (function(){ "use strict"; return et2_inputWidget.extend(
|
|||||||
close = this._rel_url(close);
|
close = this._rel_url(close);
|
||||||
widget.input.setImageArrays('minus', close, close, close, close, close);
|
widget.input.setImageArrays('minus', close, close, close, close, close);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this._install_handler('onBeforeCheck', function(id, state) {
|
||||||
|
return !this.options.readonly;
|
||||||
|
}.bind(this));
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user