Improve selection of mailboxes

This commit is contained in:
Francis Lachapelle
2016-01-07 16:33:41 -05:00
parent c86499f658
commit f8d71966b9
2 changed files with 8 additions and 6 deletions
@@ -215,7 +215,7 @@
vm.editMode = false;
}
function selectFolder(account, folder) {
function selectFolder($event, account, folder) {
if (vm.editMode == folder.path)
return;
vm.editMode = false;
@@ -225,6 +225,8 @@
if ($mdMedia('xs'))
$mdSidenav('left').close();
$state.go('mail.account.mailbox', { accountId: account.id, mailboxId: encodeUriFilter(folder.path) });
$event.stopPropagation();
$event.preventDefault();
}
function saveFolder(folder) {