Fix read-only display of links with application already set

This commit is contained in:
Nathan Gray 2013-06-11 23:13:04 +00:00
parent 4d26a36d09
commit 7fc6d7e24d

View File

@ -857,7 +857,7 @@ et2_register_widget(et2_link_entry, ["link-entry"]);
var et2_link = et2_valueWidget.extend([et2_IDetachedDOM], var et2_link = et2_valueWidget.extend([et2_IDetachedDOM],
{ {
attributes: { attributes: {
"application": { "only_app": {
"name": "Application", "name": "Application",
"type": "string", "type": "string",
"default": "", "default": "",
@ -871,7 +871,7 @@ var et2_link = et2_valueWidget.extend([et2_IDetachedDOM],
"ignore": true "ignore": true
} }
}, },
legacyOptions: ["application"], legacyOptions: ["only_app"],
/** /**
* Constructor * Constructor
@ -894,7 +894,7 @@ var et2_link = et2_valueWidget.extend([et2_IDetachedDOM],
}, },
set_value: function(_value) { set_value: function(_value) {
if(typeof _value != 'object' && _value && !this.options.application) if(typeof _value != 'object' && _value && !this.options.only_app)
{ {
if(_value.indexOf(':') >= 0) if(_value.indexOf(':') >= 0)
{ {
@ -912,7 +912,7 @@ var et2_link = et2_valueWidget.extend([et2_IDetachedDOM],
else if (typeof _value != "object") else if (typeof _value != "object")
{ {
_value = { _value = {
app: this.options.application, app: this.options.only_app,
id: _value id: _value
}; };
} }