fix javascript error: can not call method removeClass of null

This commit is contained in:
Ralf Becker 2014-02-14 09:35:51 +00:00
parent e670459122
commit 49ffb7a6db

View File

@ -235,7 +235,7 @@ var et2_button = et2_baseWidget.extend([et2_IInput, et2_IDetachedDOM],
attachToDOM: function() { attachToDOM: function() {
this._super.apply(this, arguments); this._super.apply(this, arguments);
if (this.options.readonly) if (this.options.readonly && (this.btn || this.image))
{ {
(this.btn || this.image) (this.btn || this.image)
.removeClass('et2_clickable') .removeClass('et2_clickable')