From 1ecfbb699c939ffa2b365724dba17d01b6bef40b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 31 May 2012 23:39:22 +0200 Subject: [PATCH] Added event for AJAX responses within clipboard --- wcfsetup/install/files/js/WCF.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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]) { -- 2.20.1