(js) Fix selection of search results in Webmail

When performing a search from the special router state
"mail.account.inbox", the first selection was changing the state name
and resetting the search. The special "inbox" state will now force a URL
change to avoid this problem.
This commit is contained in:
Francis Lachapelle committed 2016-03-03 15:03:42 -05:00
1 parent 599264b3d9
commit 72a38c51b4
2 files changed
+7 -18

No files matched your search

@@ -40,7 +40,7 @@
if (Mailbox.$virtualMode)
$state.go('mail.account.virtualMailbox.message', {accountId: stateAccount.id, mailboxId: encodeUriFilter(message.$mailbox.path), messageId: message.uid});
else
$state.go('mail.account.mailbox.message', {accountId: stateAccount.id, mailboxId: encodeUriFilter(message.$mailbox.path), messageId: message.uid});
$state.go('mail.account.mailbox.message', {messageId: message.uid});
}
function toggleMessageSelection($event, message) {