Make sure button is there before trying to edit its CSS

This commit is contained in:
Nathan Gray 2013-11-19 21:49:07 +00:00
parent 94f223c740
commit c944df738d

View File

@ -166,7 +166,10 @@ var et2_button = et2_baseWidget.extend([et2_IInput, et2_IDetachedDOM],
if(!found_image)
{
this.set_label(this.label);
this.btn.css("background-image","");
if(this.btn)
{
this.btn.css("background-image","");
}
}
},