Skip to content
Snippets Groups Projects
Commit d030c28d authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

bind undo to current deleteHandler

parent 29ef2f7a
Branches
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ DeleteHandler.prototype.setNotification = function(notifier, dataID, message, un ...@@ -54,7 +54,7 @@ DeleteHandler.prototype.setNotification = function(notifier, dataID, message, un
$('#notification').on('click', '.undo', function () { $('#notification').on('click', '.undo', function () {
if ($('#notification').data(dh.notificationDataID)) { if ($('#notification').data(dh.notificationDataID)) {
var oid = dh.oidToDelete; var oid = dh.oidToDelete;
UserDeleteHandler.cancel(); dh.cancel();
if(typeof dh.undoCallback !== 'undefined') { if(typeof dh.undoCallback !== 'undefined') {
dh.undoCallback(oid); dh.undoCallback(oid);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment