Cleaned up error handling for entry removal.

This commit is contained in:
Alexis Lahouze 2013-12-09 11:31:29 +01:00
parent 898357d160
commit 35720dc3a5

View File

@ -333,14 +333,6 @@ var EntryController = function($scope, $http, $rootScope, $filter) {
// Send the "entry removed" event. // Send the "entry removed" event.
$scope.$emit("entryRemovedEvent", $scope.removingEntry); $scope.$emit("entryRemovedEvent", $scope.removingEntry);
$scope.hideRemoveEntryPopup();
}).error(function (data) {
$.pnotify({
type: "error",
title: "Delete",
text: data
});
$scope.hideRemoveEntryPopup(); $scope.hideRemoveEntryPopup();
}); });
} }