(js) Reset multiple-selection mode after delete

This commit is contained in:
Francis Lachapelle committed 2016-07-20 11:10:34 -04:00
1 parent e742916084
commit ffa1920122
3 files changed
+3

No files matched your search

@@ -59,6 +59,7 @@
// User confirmed the deletion
var selectedCards = _.filter(vm.selectedFolder.$cards, function(card) { return card.selected; });
vm.selectedFolder.$deleteCards(selectedCards).then(function() {
vm.mode.multiple = 0;
if (!vm.selectedFolder.selectedCard)
$state.go('app.addressbook');
});
@@ -90,6 +90,7 @@
return component.selected;
});
Calendar.$deleteComponents(components).then(function() {
vm.mode.multiple = 0;
$rootScope.$emit('calendars:list');
});
});