bind undo to current deleteHandler

This commit is contained in:
Arthur Schiwon 2014-05-09 18:58:50 +02:00
parent 29ef2f7a2f
commit d030c28d69

View file

@ -54,7 +54,7 @@ DeleteHandler.prototype.setNotification = function(notifier, dataID, message, un
$('#notification').on('click', '.undo', function () {
if ($('#notification').data(dh.notificationDataID)) {
var oid = dh.oidToDelete;
UserDeleteHandler.cancel();
dh.cancel();
if(typeof dh.undoCallback !== 'undefined') {
dh.undoCallback(oid);
}