Fix set_Value() -> set_value()

This commit is contained in:
Nathan Gray 2013-02-13 09:23:33 +00:00
parent 98fb6cf00e
commit 54b1fb9ce4
3 changed files with 5 additions and 4 deletions

View File

@ -24,7 +24,7 @@ var et2_description = et2_baseWidget.extend([et2_IDetachedDOM], {
attributes: { attributes: {
"value": { "value": {
"name": "Caption", "name": "Value",
"type": "string", "type": "string",
"description": "Displayed text", "description": "Displayed text",
"translate": "!no_lang" "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), et2_insertLinkText(this._parseText(_value),
this.span[0], this.span[0],
this.options.extra_link_target 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))) if (typeof _values["value"] != "undefined" || (updateLink && (_values["value"] || this.options.value)))
{ {
this.span = jQuery(_nodes[0]); this.span = jQuery(_nodes[0]);
this.set_Value(_values["value"]); this.set_value(_values["value"]);
} }
if (typeof _values["class"] != "undefined") if (typeof _values["class"] != "undefined")

View File

@ -16,6 +16,7 @@
jquery.jquery; jquery.jquery;
et2_core_inputWidget; et2_core_inputWidget;
et2_core_valueWidget; et2_core_valueWidget;
et2_widget_description;
*/ */
/** /**

View File

@ -486,7 +486,7 @@ etemplate2.prototype.refresh = function(msg, id, type)
var msg_widget = this.widgetContainer.getWidgetById("msg"); var msg_widget = this.widgetContainer.getWidgetById("msg");
if(msg_widget) if(msg_widget)
{ {
msg_widget.set_Value(msg); msg_widget.set_value(msg);
msg_widget.set_disabled(msg.trim().length == 0); msg_widget.set_disabled(msg.trim().length == 0);
// In case parent(s) have been disabled, just show it all // In case parent(s) have been disabled, just show it all