mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 05:59:21 +03:00
replaced knockout hasfocus with autofocus=""
This commit is contained in:
parent
650e962fdf
commit
b4ab5b891a
12 changed files with 18 additions and 50 deletions
|
|
@ -18,7 +18,6 @@ class FolderCreatePopupView extends AbstractViewPopup {
|
|||
|
||||
this.addObservables({
|
||||
folderName: '',
|
||||
folderNameFocused: false,
|
||||
|
||||
selectedParentValue: UNUSED_OPTION_VALUE
|
||||
});
|
||||
|
|
@ -59,22 +58,17 @@ class FolderCreatePopupView extends AbstractViewPopup {
|
|||
}
|
||||
|
||||
simpleFolderNameValidation(sName) {
|
||||
return /^[^\\/]+$/g.test(sName.trim());
|
||||
return /^[^\\/]+$/g.test(sName);
|
||||
}
|
||||
|
||||
clearPopup() {
|
||||
this.folderName('');
|
||||
this.selectedParentValue('');
|
||||
this.folderNameFocused(false);
|
||||
}
|
||||
|
||||
onShow() {
|
||||
this.clearPopup();
|
||||
}
|
||||
|
||||
onShowWithDelay() {
|
||||
this.folderNameFocused(true);
|
||||
}
|
||||
}
|
||||
|
||||
export { FolderCreatePopupView, FolderCreatePopupView as default };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue