Cleaned up error handling for entry removal.
This commit is contained in:
parent
898357d160
commit
35720dc3a5
@ -333,14 +333,6 @@ var EntryController = function($scope, $http, $rootScope, $filter) {
|
||||
// Send the "entry removed" event.
|
||||
$scope.$emit("entryRemovedEvent", $scope.removingEntry);
|
||||
|
||||
$scope.hideRemoveEntryPopup();
|
||||
}).error(function (data) {
|
||||
$.pnotify({
|
||||
type: "error",
|
||||
title: "Delete",
|
||||
text: data
|
||||
});
|
||||
|
||||
$scope.hideRemoveEntryPopup();
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user