replaced knockout hasfocus with autofocus=""

This commit is contained in:
djmaze 2021-03-23 22:57:40 +01:00
parent 650e962fdf
commit b4ab5b891a
12 changed files with 18 additions and 50 deletions

View file

@ -12,8 +12,6 @@ class AdvancedSearchPopupView extends AbstractViewPopup {
super('AdvancedSearch');
this.addObservables({
fromFocus: false,
from: '',
to: '',
subject: '',
@ -142,18 +140,12 @@ class AdvancedSearchPopupView extends AbstractViewPopup {
this.hasAttachment(false);
this.starred(false);
this.unseen(false);
this.fromFocus(true);
}
onShow(search) {
this.clearPopup();
this.parseSearchStringValue(search);
}
onShowWithDelay() {
this.fromFocus(true);
}
}
export { AdvancedSearchPopupView, AdvancedSearchPopupView as default };