mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-21 23:12:40 +00:00
(js) Various improvements and fixes
This commit is contained in:
1 parent
333d279246
commit
5a5b4cc829
7 files changed
+56
-34
No files matched your search
@@ -6,8 +6,8 @@
|
||||
/**
|
||||
* @ngInject
|
||||
*/
|
||||
MailboxController.$inject = ['$state', '$timeout', '$mdDialog', 'stateAccounts', 'stateAccount', 'stateMailbox', 'encodeUriFilter', 'sgFocus', 'Dialog', 'Account', 'Mailbox'];
|
||||
function MailboxController($state, $timeout, $mdDialog, stateAccounts, stateAccount, stateMailbox, encodeUriFilter, focus, Dialog, Account, Mailbox) {
|
||||
MailboxController.$inject = ['$state', '$timeout', '$mdDialog', 'stateAccounts', 'stateAccount', 'stateMailbox', 'encodeUriFilter', 'Dialog', 'Account', 'Mailbox'];
|
||||
function MailboxController($state, $timeout, $mdDialog, stateAccounts, stateAccount, stateMailbox, encodeUriFilter, Dialog, Account, Mailbox) {
|
||||
var vm = this, messageDialog = null;
|
||||
|
||||
Mailbox.selectedFolder = stateMailbox;
|
||||
@@ -93,9 +93,9 @@
|
||||
}
|
||||
|
||||
function selectAll() {
|
||||
_.each(vm.selectedFolder.$messages, function(message) {
|
||||
message.selected = true;
|
||||
});
|
||||
var i = 0, length = vm.selectedFolder.$messages.length;
|
||||
for (; i < length; i++)
|
||||
vm.selectedFolder.$messages[i].selected = true;
|
||||
}
|
||||
|
||||
function markSelectedMessagesAsFlagged() {
|
||||
|
||||
Reference in new issue
Block a user