From 54c9146322ffd47192e6403bc0a6bac77a0359da Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 28 Jul 2012 20:29:34 +0200 Subject: [PATCH] Added additional parameters for clipboard requests --- wcfsetup/install/files/js/WCF.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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') ]); -- 2.20.1