From ea406d3e856f784ffd8042b9e6b679d65e86ac41 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 12 Oct 2011 16:37:56 +0000 Subject: [PATCH] Fix deleteDOMNode() -> removeDOMNode(), fixes labels for selectboxes, probably others --- etemplate/js/et2_core_inputWidget.js | 2 +- etemplate/js/et2_widget_url.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }