mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 14:07:04 +03:00
Interface optimization
Mark as important (compose)
This commit is contained in:
parent
821991a263
commit
d5eacb6a4d
43 changed files with 1069 additions and 780 deletions
|
|
@ -46,6 +46,8 @@
|
|||
}
|
||||
;
|
||||
|
||||
this.bBackToCompose = false;
|
||||
|
||||
this.allowContactsSync = Data.allowContactsSync;
|
||||
this.enableContactsSync = Data.enableContactsSync;
|
||||
this.allowExport = !Globals.bMobileDevice;
|
||||
|
|
@ -261,8 +263,13 @@
|
|||
|
||||
if (Utils.isNonEmptyArray(aE))
|
||||
{
|
||||
self.bBackToCompose = false;
|
||||
|
||||
kn.hideScreenPopup(require('View/Popup/Contacts'));
|
||||
kn.showScreenPopup(require('View/Popup/Compose'), [Enums.ComposeType.Empty, null, aE]);
|
||||
|
||||
_.delay(function () {
|
||||
kn.showScreenPopup(require('View/Popup/Compose'), [Enums.ComposeType.Empty, null, aE]);
|
||||
}, 200);
|
||||
}
|
||||
|
||||
}, function () {
|
||||
|
|
@ -716,8 +723,10 @@
|
|||
this.initUploader();
|
||||
};
|
||||
|
||||
ContactsPopupView.prototype.onShow = function ()
|
||||
ContactsPopupView.prototype.onShow = function (bBackToCompose)
|
||||
{
|
||||
this.bBackToCompose = Utils.isUnd(bBackToCompose) ? false : !!bBackToCompose;
|
||||
|
||||
kn.routeOff();
|
||||
this.reloadContactList(true);
|
||||
};
|
||||
|
|
@ -732,6 +741,13 @@
|
|||
|
||||
Utils.delegateRunOnDestroy(this.contacts());
|
||||
this.contacts([]);
|
||||
|
||||
if (this.bBackToCompose)
|
||||
{
|
||||
this.bBackToCompose = false;
|
||||
|
||||
kn.showScreenPopup(require('View/Popup/Compose'));
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = ContactsPopupView;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue