mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 22:47:03 +03:00
$.proxy is deprecated
$.trim is deprecated
This commit is contained in:
parent
ae1b7610fd
commit
bbd9f49dcd
39 changed files with 153 additions and 173 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import ko from 'ko';
|
||||
|
||||
import { StorageResultType, Notification } from 'Common/Enums';
|
||||
import { trim, isNormal } from 'Common/Utils';
|
||||
import { isNormal } from 'Common/Utils';
|
||||
import { getNotification } from 'Common/Translator';
|
||||
import { HtmlEditor } from 'Common/HtmlEditor';
|
||||
|
||||
|
|
@ -49,8 +49,8 @@ class TemplatePopupView extends AbstractViewNext {
|
|||
addTemplateCommand() {
|
||||
this.populateBodyFromEditor();
|
||||
|
||||
this.name.error(!trim(this.name()));
|
||||
this.body.error(!trim(this.body()) || ':HTML:' === trim(this.body()));
|
||||
this.name.error(!this.name().trim());
|
||||
this.body.error(!this.body().trim() || ':HTML:' === this.body().trim());
|
||||
|
||||
if (this.name.error() || this.body.error()) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue