mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Fix clear button in search widget disappears after being reloaded
This commit is contained in:
parent
af4a605561
commit
8bbb05a596
@ -493,8 +493,10 @@ var et2_searchbox = /** @class */ (function (_super) {
|
||||
};
|
||||
et2_searchbox.prototype.set_value = function (_value) {
|
||||
_super.prototype.set_value.call(this, _value);
|
||||
if (this.search)
|
||||
if (this.search) {
|
||||
this.search.input.val(_value);
|
||||
this.clear.toggle(_value != '');
|
||||
}
|
||||
};
|
||||
et2_searchbox.prototype.set_readonly = function (_readonly) {
|
||||
this.search.set_readonly(_readonly);
|
||||
|
@ -584,7 +584,11 @@ class et2_searchbox extends et2_textbox
|
||||
set_value(_value)
|
||||
{
|
||||
super.set_value(_value);
|
||||
if (this.search) this.search.input.val(_value);
|
||||
if (this.search)
|
||||
{
|
||||
this.search.input.val(_value);
|
||||
this.clear.toggle(_value != '');
|
||||
}
|
||||
}
|
||||
|
||||
set_readonly(_readonly)
|
||||
|
Loading…
Reference in New Issue
Block a user