Hide button when value is cleared

This commit is contained in:
Nathan Gray 2011-08-25 23:00:44 +00:00
parent 7f5d8cec65
commit 105c79883f

View File

@ -112,7 +112,8 @@ var et2_url = et2_textbox.extend({
} }
else else
{ {
if(this._button) if(this._button) this._button.hide();
if(this._button && this.getSurroundings && this.getSurroundings().deleteDOMNode)
{ {
this.getSurroundings().deleteDOMNode(this._button[0]); this.getSurroundings().deleteDOMNode(this._button[0]);
} }