mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 11:58:24 +01:00
Etemplate: Fix et2_selectAccount legacy options were not set
This commit is contained in:
parent
ad7b0a2696
commit
dadf0fe993
@ -588,7 +588,7 @@ export class et2_link_entry extends et2_inputWidget
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
protected static readonly legacyOptions = ["only_app", "application_list"];
|
public static readonly legacyOptions = ["only_app", "application_list"];
|
||||||
protected static readonly search_timeout = 500; //ms after change to send query
|
protected static readonly search_timeout = 500; //ms after change to send query
|
||||||
protected static readonly minimum_characters = 4; // Don't send query unless there's at least this many chars
|
protected static readonly minimum_characters = 4; // Don't send query unless there's at least this many chars
|
||||||
|
|
||||||
|
@ -54,7 +54,6 @@ var et2_selectAccount = /** @class */ (function (_super) {
|
|||||||
*/
|
*/
|
||||||
function et2_selectAccount(_parent, _attrs, _child) {
|
function et2_selectAccount(_parent, _attrs, _child) {
|
||||||
var _this = _super.call(this, _parent, _attrs, et2_core_inheritance_1.ClassWithAttributes.extendAttributes(et2_selectAccount._attributes, _child || {})) || this;
|
var _this = _super.call(this, _parent, _attrs, et2_core_inheritance_1.ClassWithAttributes.extendAttributes(et2_selectAccount._attributes, _child || {})) || this;
|
||||||
_this.legacyOptions = ['empty_label', 'account_type'];
|
|
||||||
// Type in rows or somewhere else?
|
// Type in rows or somewhere else?
|
||||||
if (jQuery.inArray(_attrs['empty_label'], et2_selectAccount.account_types) > 0 && (jQuery.inArray(_attrs['account_type'], et2_selectAccount.account_types) < 0 ||
|
if (jQuery.inArray(_attrs['empty_label'], et2_selectAccount.account_types) > 0 && (jQuery.inArray(_attrs['account_type'], et2_selectAccount.account_types) < 0 ||
|
||||||
_attrs['account_type'] == et2_selectAccount._attributes.account_type['default'])) {
|
_attrs['account_type'] == et2_selectAccount._attributes.account_type['default'])) {
|
||||||
@ -606,6 +605,7 @@ var et2_selectAccount = /** @class */ (function (_super) {
|
|||||||
'description': 'Limit type of accounts. One of {accounts,groups,both,owngroups}.'
|
'description': 'Limit type of accounts. One of {accounts,groups,both,owngroups}.'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
et2_selectAccount.legacyOptions = ['empty_label', 'account_type'];
|
||||||
et2_selectAccount.account_types = ['accounts', 'groups', 'both', 'owngroups'];
|
et2_selectAccount.account_types = ['accounts', 'groups', 'both', 'owngroups'];
|
||||||
return et2_selectAccount;
|
return et2_selectAccount;
|
||||||
}(et2_widget_selectbox_1.et2_selectbox));
|
}(et2_widget_selectbox_1.et2_selectbox));
|
||||||
|
@ -45,7 +45,7 @@ export class et2_selectAccount extends et2_selectbox
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
public readonly legacyOptions = ['empty_label','account_type'];
|
public static readonly legacyOptions = ['empty_label','account_type'];
|
||||||
|
|
||||||
public static readonly account_types = ['accounts','groups','both','owngroups'];
|
public static readonly account_types = ['accounts','groups','both','owngroups'];
|
||||||
private search: JQuery;
|
private search: JQuery;
|
||||||
|
Loading…
Reference in New Issue
Block a user