mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Small fixes and improvements
This commit is contained in:
parent
f5b92b8b65
commit
791f0ff6ad
9 changed files with 6100 additions and 6350 deletions
|
|
@ -225,7 +225,7 @@ function runApp()
|
|||
p.setOptions({theme: 'rainloop'});
|
||||
p.start().set(5);
|
||||
|
||||
const libs = jassl(appData.StaticLibJsLink).then(() => {
|
||||
const libs = () => jassl(appData.StaticLibJsLink).then(() => {
|
||||
if (window.$)
|
||||
{
|
||||
window.$('#rl-check').remove();
|
||||
|
|
@ -243,12 +243,14 @@ function runApp()
|
|||
}
|
||||
});
|
||||
|
||||
const common = window.Promise.all([
|
||||
jassl(appData.TemplatesLink),
|
||||
jassl(appData.LangLink)
|
||||
]);
|
||||
|
||||
window.Promise.all([libs, common])
|
||||
libs()
|
||||
.then(() => {
|
||||
p.set(20);
|
||||
return window.Promise.all([
|
||||
jassl(appData.TemplatesLink),
|
||||
jassl(appData.LangLink)
|
||||
]);
|
||||
})
|
||||
.then(() => {
|
||||
p.set(30);
|
||||
return jassl(useJsNextBundle ? appData.StaticAppJsNextLink : appData.StaticAppJsLink);
|
||||
|
|
|
|||
4
dev/External/ko.js
vendored
4
dev/External/ko.js
vendored
|
|
@ -1209,7 +1209,7 @@ ko.observable.fn.validateEmail = function() {
|
|||
this.hasError = ko.observable(false);
|
||||
|
||||
this.subscribe((value) => {
|
||||
this.hasError('' !== value && !(/^[^@\s]+@[^@\s]+$/.test(value)));
|
||||
this.hasError('' !== value && !((/^[^@\s]+@[^@\s]+$/).test(value)));
|
||||
});
|
||||
|
||||
this.valueHasMutated();
|
||||
|
|
@ -1221,7 +1221,7 @@ ko.observable.fn.validateSimpleEmail = function() {
|
|||
this.hasError = ko.observable(false);
|
||||
|
||||
this.subscribe((value) => {
|
||||
this.hasError('' !== value && !(/^.+@.+$/.test(value)));
|
||||
this.hasError('' !== value && !((/^.+@.+$/).test(value)));
|
||||
});
|
||||
|
||||
this.valueHasMutated();
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ class AddOpenPgpKeyPopupView extends AbstractViewNext
|
|||
|
||||
let keyTrimmed = trim(this.key());
|
||||
|
||||
if (/[\n]/.test(keyTrimmed))
|
||||
if ((/[\n]/).test(keyTrimmed))
|
||||
{
|
||||
keyTrimmed = keyTrimmed.replace(/[\r]+/g, '').replace(/[\n]{2,}/g, '\n\n');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -327,7 +327,7 @@ class ContactsPopupView extends AbstractViewNext
|
|||
properties = [];
|
||||
|
||||
_.each(this.viewProperties(), (oItem) => {
|
||||
if (oItem.type() && '' !== trim(oItem.value()))
|
||||
if (oItem.type() && oItem.type() !== ContactPropertyType.FullName && '' !== trim(oItem.value()))
|
||||
{
|
||||
properties.push([oItem.type(), oItem.value(), oItem.typeStr()]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -465,7 +465,7 @@ class MessageListMailBoxUserView extends AbstractViewNext
|
|||
return false;
|
||||
}
|
||||
|
||||
if (/is:unseen/.test(this.mainMessageListSearch()))
|
||||
if ((/is:unseen/).test(this.mainMessageListSearch()))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue