Added event for AJAX responses within clipboard
authorAlexander Ebert <ebert@woltlab.com>
Thu, 31 May 2012 21:39:22 +0000 (23:39 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 31 May 2012 21:39:22 +0000 (23:39 +0200)
wcfsetup/install/files/js/WCF.js

index b53e153749e7613900edf84cc8560bf3b08b21de..0a018696efad0759d9c191582404a85209ddb519 100644 (file)
@@ -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]) {