mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-20 13:55:58 +00:00
(js) Fix possible errors (help from jsjint)
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
scope.create = function(type) {
|
||||
$mdDialog.hide();
|
||||
$state.go('app.addressbook.new', { addressbookId: addressbookId, contactType: type });
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,8 +78,9 @@
|
||||
l('Are you sure you want to delete the selected contacts?'))
|
||||
.then(function() {
|
||||
// User confirmed the deletion
|
||||
var selectedCards = _.filter(vm.selectedFolder.cards, function(card) { return card.selected });
|
||||
var selectedCards = _.filter(vm.selectedFolder.cards, function(card) { return card.selected; });
|
||||
vm.selectedFolder.$deleteCards(selectedCards);
|
||||
delete vm.selectedFolder.selectedCard;
|
||||
}, function(data, status) {
|
||||
// Delete failed
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user