mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
bind undo to current deleteHandler
This commit is contained in:
parent
29ef2f7a2f
commit
d030c28d69
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue