From: Alexander Ebert Date: Sat, 28 Jul 2012 18:29:34 +0000 (+0200) Subject: Added additional parameters for clipboard requests X-Git-Tag: 2.0.0_Beta_1~974 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=54c9146322ffd47192e6403bc0a6bac77a0359da;p=GitHub%2FWoltLab%2FWCF.git Added additional parameters for clipboard requests --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index db32d59d99..b4065abd6b 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -1070,15 +1070,23 @@ WCF.Clipboard = { $objectIDs.push(parseInt(objectID)); }); + var $parameters = { + data: data + }; + var $__parameters = $listItem.data('internalData')['parameters']; + if ($__parameters !== undefined) { + for (var $key in $__parameters) { + $parameters[$key] = $__parameters[$key]; + } + } + new WCF.Action.Proxy({ autoSend: true, data: { actionName: listItem.data('parameters').actionName, className: listItem.data('parameters').className, objectIDs: $objectIDs, - parameters: { - data: data - } + parameters: $parameters }, success: $.proxy(function(data) { listItem.trigger('clipboardActionResponse', [ data, listItem.data('type'), listItem.data('actionName'), listItem.data('parameters') ]);