Skip to content

Commit

Permalink
Fixes from jpetitcolas's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasia Korobkin committed Jul 15, 2015
1 parent ef44643 commit c473394
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/javascripts/ng-admin/Crud/delete/DeleteController.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ define(function () {
$window = this.$window;

this.WriteQueries.deleteOne(this.view, this.entityId).then(function () {
$window.history.back();
this.back();
notification.log('Element successfully deleted.', { addnCls: 'humane-flatty-success' });
}.bind(this), function (response) {
// @TODO: share this method when splitting controllers
Expand All @@ -40,9 +40,7 @@ define(function () {
};

DeleteController.prototype.back = function () {
var $window = this.$window;

$window.history.back();
this.$window.history.back();
};

DeleteController.prototype.destroy = function () {
Expand Down

0 comments on commit c473394

Please sign in to comment.