forked from extern/egroupware
Etemplate: Fix read-only selectAccount would always add new values causing doubles
This commit is contained in:
parent
ac100e4424
commit
c0072bc0eb
@ -670,10 +670,8 @@ var et2_selectAccount_ro = /** @class */ (function (_super) {
|
||||
.off();
|
||||
return;
|
||||
}
|
||||
// Don't make it look like a link
|
||||
jQuery('li', this.list).removeClass("et2_link et2_link_string")
|
||||
// No clicks either
|
||||
.off();
|
||||
// Empty it before we fill it
|
||||
jQuery('li', this.list).remove();
|
||||
var found = false;
|
||||
if (this.options.select_options && !jQuery.isEmptyObject(this.options.select_options) || this.options.empty_label) {
|
||||
if (!_value) {
|
||||
|
@ -837,10 +837,8 @@ export class et2_selectAccount_ro extends et2_link_string
|
||||
return;
|
||||
}
|
||||
|
||||
// Don't make it look like a link
|
||||
jQuery('li',this.list).removeClass("et2_link et2_link_string")
|
||||
// No clicks either
|
||||
.off();
|
||||
// Empty it before we fill it
|
||||
jQuery('li',this.list).remove();
|
||||
|
||||
let found = false;
|
||||
if(this.options.select_options && !jQuery.isEmptyObject(this.options.select_options) || this.options.empty_label)
|
||||
|
Loading…
Reference in New Issue
Block a user