Fixed confirmation dialog not properly handled within ClipboardHandler
authorAlexander Ebert <ebert@woltlab.com>
Wed, 20 Jun 2012 18:02:25 +0000 (20:02 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 20 Jun 2012 18:02:25 +0000 (20:02 +0200)
wcfsetup/install/files/js/WCF.js

index 4a412e6607a9747ac035ad84741dc641cfe7502f..bc7c5ded18fbbcd759839d354357200968326cfc 100644 (file)
@@ -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 {