diff --git a/api/js/etemplate/et2_widget_link.js b/api/js/etemplate/et2_widget_link.js index 71c4cb1b94..7dd37fba91 100644 --- a/api/js/etemplate/et2_widget_link.js +++ b/api/js/etemplate/et2_widget_link.js @@ -434,7 +434,7 @@ var et2_link_apps = /** @class */ (function (_super) { _attrs.select_options = select_options; _super.prototype.transformAttributes.call(this, _attrs); }; - et2_link_apps.attributes = { + et2_link_apps._attributes = { "only_app": { "name": "Application", "type": "string", @@ -989,7 +989,7 @@ var et2_link_entry = /** @class */ (function (_super) { delete this.options.value.id; } }; - et2_link_entry.attributes = { + et2_link_entry._attributes = { "value": { "type": "any", "default": {} @@ -1401,7 +1401,7 @@ var et2_link_string = /** @class */ (function (_super) { this._labelContainer.contents().not(this.list).remove(); } }; - et2_link_string.attributes = { + et2_link_string._attributes = { "application": { "name": "Application", "type": "string", @@ -1846,7 +1846,7 @@ var et2_link_list = /** @class */ (function (_super) { $td.html('' + dirs.join('/') + ': - ' + filename); } }; - et2_link_list.attributes = { + et2_link_list._attributes = { "show_deleted": { "name": "Show deleted", "type": "boolean", diff --git a/api/js/etemplate/et2_widget_link.ts b/api/js/etemplate/et2_widget_link.ts index 1b95a66d02..ffe763bb52 100644 --- a/api/js/etemplate/et2_widget_link.ts +++ b/api/js/etemplate/et2_widget_link.ts @@ -468,7 +468,7 @@ et2_register_widget(et2_link_to, ["link-to"]); */ export class et2_link_apps extends et2_selectbox { - static readonly attributes: any = { + static readonly _attributes: any = { "only_app": { "name": "Application", "type": "string", @@ -545,7 +545,7 @@ et2_register_widget(et2_link_apps, ["link-apps"]); */ export class et2_link_entry extends et2_inputWidget { - static readonly attributes : any = { + static readonly _attributes : any = { "value": { "type": "any", "default": {} @@ -614,8 +614,6 @@ export class et2_link_entry extends et2_inputWidget { super(_parent, _attrs, ClassWithAttributes.extendAttributes(et2_link_entry._attributes, _child || {})); - - this.search = null; this.clear = null; this.app_select = null; @@ -663,10 +661,14 @@ export class et2_link_entry extends et2_inputWidget // Application selection jQuery.widget( "custom.iconselectmenu", jQuery.ui.selectmenu, { - _setText: function(element, value){ - if(element === this.buttonText){ + _setText: function(element, value) + { + if(element === this.buttonText) + { this._setButtonText(value); - } else { + } + else + { this._superApply(element, value); } }, @@ -699,7 +701,8 @@ export class et2_link_entry extends et2_inputWidget var li = jQuery( "