Improve view detail (messages, cards)

This commit is contained in:
Francis Lachapelle
2015-08-27 13:37:47 -04:00
parent bba0d6f44d
commit 3611c4021d
7 changed files with 52 additions and 17 deletions
@@ -88,9 +88,10 @@
}
}
function close() {
vm.card = null;
delete AddressBook.selectedFolder.selectedCard;
$state.go('app.addressbook', { addressbookId: AddressBook.selectedFolder.id });
$state.go('app.addressbook', { addressbookId: AddressBook.selectedFolder.id }).then(function() {
vm.card = null;
delete AddressBook.selectedFolder.selectedCard;
});
}
function reset() {
vm.card.$reset();