mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 12:51:52 +02:00
Etemplate: Fix read-only selectAccount would always add new values causing doubles
This commit is contained in:
parent
8bc5b22b5e
commit
c301c1b194
@ -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…
x
Reference in New Issue
Block a user