diff --git a/etemplate/js/et2_core_inputWidget.js b/etemplate/js/et2_core_inputWidget.js index 86a54f9f1b..14422cb8c3 100644 --- a/etemplate/js/et2_core_inputWidget.js +++ b/etemplate/js/et2_core_inputWidget.js @@ -193,7 +193,7 @@ var et2_inputWidget = et2_valueWidget.extend(et2_IInput, { // Delete the labelContainer from the surroundings object if (this._labelContainer) { - this.getSurroundings().deleteDOMNode(this._labelContainer[0]); + this.getSurroundings().removeDOMNode(this._labelContainer[0]); } this._labelContainer = null; } diff --git a/etemplate/js/et2_widget_url.js b/etemplate/js/et2_widget_url.js index d3a07354ca..8741181974 100644 --- a/etemplate/js/et2_widget_url.js +++ b/etemplate/js/et2_widget_url.js @@ -107,9 +107,9 @@ var et2_url = et2_textbox.extend({ else { if(this._button) this._button.hide(); - if(this._button && this.getSurroundings && this.getSurroundings().deleteDOMNode) + if(this._button && this.getSurroundings && this.getSurroundings().removeDOMNode) { - this.getSurroundings().deleteDOMNode(this._button[0]); + this.getSurroundings().removeDOMNode(this._button[0]); } this._button = null; }