forked from extern/egroupware
fix javascript error: can not call method removeClass of null
This commit is contained in:
parent
e670459122
commit
49ffb7a6db
@ -235,7 +235,7 @@ var et2_button = et2_baseWidget.extend([et2_IInput, et2_IDetachedDOM],
|
||||
attachToDOM: function() {
|
||||
this._super.apply(this, arguments);
|
||||
|
||||
if (this.options.readonly)
|
||||
if (this.options.readonly && (this.btn || this.image))
|
||||
{
|
||||
(this.btn || this.image)
|
||||
.removeClass('et2_clickable')
|
||||
|
Loading…
Reference in New Issue
Block a user