From: Arthur Schiwon Date: Fri, 9 May 2014 16:58:50 +0000 (+0200) Subject: bind undo to current deleteHandler X-Git-Tag: v7.0.0alpha2~144^2~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d030c28d697d6de6349be979f74d7b10d3a2c4e8;p=nextcloud-server.git bind undo to current deleteHandler --- diff --git a/settings/js/users/deleteHandler.js b/settings/js/users/deleteHandler.js index 82c44b30581..58017dd91a6 100644 --- a/settings/js/users/deleteHandler.js +++ b/settings/js/users/deleteHandler.js @@ -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); }