diff --git a/etemplate/js/et2_widget_url.js b/etemplate/js/et2_widget_url.js index 8fb133675d..5e55f92dbd 100644 --- a/etemplate/js/et2_widget_url.js +++ b/etemplate/js/et2_widget_url.js @@ -112,7 +112,8 @@ var et2_url = et2_textbox.extend({ } else { - if(this._button) + if(this._button) this._button.hide(); + if(this._button && this.getSurroundings && this.getSurroundings().deleteDOMNode) { this.getSurroundings().deleteDOMNode(this._button[0]); }