From: Alexander Ebert Date: Thu, 31 May 2012 21:39:22 +0000 (+0200) Subject: Added event for AJAX responses within clipboard X-Git-Tag: 2.0.0_Beta_1~1090 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1ecfbb699c939ffa2b365724dba17d01b6bef40b;p=GitHub%2FWoltLab%2FWCF.git Added event for AJAX responses within clipboard --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index b53e153749..0a018696ef 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -1047,7 +1047,11 @@ WCF.Clipboard = { className: listItem.data('parameters').className, objectIDs: objectIDs }, - success: $.proxy(this._loadMarkedItems, this) + success: $.proxy(function(data) { + listItem.trigger('clipboardActionResponse', [ data, listItem.data('type'), listItem.data('actionName'), listItem.data('parameters') ]); + + this._loadMarkedItems(); + }, true) }); if (this._actionObjects[listItem.data('objectType')] && this._actionObjects[listItem.data('objectType')][listItem.data('parameters').actionName]) {