From 54b1fb9ce4d6371ea5c2b480ec832b6361b1befc Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 13 Feb 2013 09:23:33 +0000 Subject: [PATCH] Fix set_Value() -> set_value() --- etemplate/js/et2_widget_description.js | 6 +++--- etemplate/js/et2_widget_vfs.js | 1 + etemplate/js/etemplate2.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/etemplate/js/et2_widget_description.js b/etemplate/js/et2_widget_description.js index 93ad0a5990..c01b0e7bcb 100644 --- a/etemplate/js/et2_widget_description.js +++ b/etemplate/js/et2_widget_description.js @@ -24,7 +24,7 @@ var et2_description = et2_baseWidget.extend([et2_IDetachedDOM], { attributes: { "value": { - "name": "Caption", + "name": "Value", "type": "string", "description": "Displayed text", "translate": "!no_lang" @@ -111,7 +111,7 @@ var et2_description = et2_baseWidget.extend([et2_IDetachedDOM], { } }, - set_Value: function(_value) { + set_value: function(_value) { et2_insertLinkText(this._parseText(_value), this.span[0], this.options.extra_link_target @@ -193,7 +193,7 @@ var et2_description = et2_baseWidget.extend([et2_IDetachedDOM], { if (typeof _values["value"] != "undefined" || (updateLink && (_values["value"] || this.options.value))) { this.span = jQuery(_nodes[0]); - this.set_Value(_values["value"]); + this.set_value(_values["value"]); } if (typeof _values["class"] != "undefined") diff --git a/etemplate/js/et2_widget_vfs.js b/etemplate/js/et2_widget_vfs.js index 56276a8273..bd67e253e6 100644 --- a/etemplate/js/et2_widget_vfs.js +++ b/etemplate/js/et2_widget_vfs.js @@ -16,6 +16,7 @@ jquery.jquery; et2_core_inputWidget; et2_core_valueWidget; + et2_widget_description; */ /** diff --git a/etemplate/js/etemplate2.js b/etemplate/js/etemplate2.js index 67c6b3da86..268d76be5e 100644 --- a/etemplate/js/etemplate2.js +++ b/etemplate/js/etemplate2.js @@ -486,7 +486,7 @@ etemplate2.prototype.refresh = function(msg, id, type) var msg_widget = this.widgetContainer.getWidgetById("msg"); if(msg_widget) { - msg_widget.set_Value(msg); + msg_widget.set_value(msg); msg_widget.set_disabled(msg.trim().length == 0); // In case parent(s) have been disabled, just show it all