From f37fdd3d5b7e9a0be5d0ecc68be20f6244ce31a2 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 20 Jun 2012 20:02:25 +0200 Subject: [PATCH] Fixed confirmation dialog not properly handled within ClipboardHandler --- wcfsetup/install/files/js/WCF.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 4a412e6607..bc7c5ded18 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -1029,8 +1029,10 @@ WCF.Clipboard = { if ($listItem.data('parameters').className && $listItem.data('parameters').actionName && $listItem.data('parameters').objectIDs) { var $confirmMessage = $listItem.data('internalData')['confirmMessage']; if ($confirmMessage) { - WCF.System.Confirmation.show($confirmMessage, $.proxy(function() { - this._executeAJAXActions($listItem); + WCF.System.Confirmation.show($confirmMessage, $.proxy(function(action) { + if (action === 'confirm') { + this._executeAJAXActions($listItem); + } }, this)); } else { -- 2.20.1