Small improvements

This commit is contained in:
RainLoop Team 2014-02-09 21:09:10 +04:00
parent 012bea8938
commit 17f6204d2a
14 changed files with 137 additions and 153 deletions

View file

@ -88,6 +88,17 @@ function WebMailDataStorage()
this.foldersDeleting = ko.observable(false);
this.foldersRenaming = ko.observable(false);
this.foldersChanging = ko.computed(function () {
var
bLoading = this.foldersLoading(),
bCreating = this.foldersCreating(),
bDeleting = this.foldersDeleting(),
bRenaming = this.foldersRenaming()
;
return bLoading || bCreating || bDeleting || bRenaming;
}, this);
this.foldersInboxUnreadCount = ko.observable(0);
this.currentFolder = ko.observable(null).extend({'toggleSubscribe': [null,

View file

@ -10,6 +10,7 @@ function MailBoxFolderListViewModel()
this.folderList = RL.data().folderList;
this.folderListSystem = RL.data().folderListSystem;
this.foldersChanging = RL.data().foldersChanging;
this.iDropOverTimer = 0;

View file

@ -45,7 +45,7 @@ function PopupsDomainViewModel()
this.smtpServerFocus.subscribe(function (bValue) {
if (bValue && '' !== this.imapServer() && '' === this.smtpServer())
{
this.smtpServer(this.imapServer());
this.smtpServer(this.imapServer().replace(/imap/ig, 'smtp'));
}
}, this);