Permalink
Browse files

Fixed confirmation dialog not properly handled within ClipboardHandler

  • Loading branch information...
1 parent 73b8442 commit f37fdd3d5b7e9a0be5d0ecc68be20f6244ce31a2 @dtdesign dtdesign committed Jun 20, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 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 {

0 comments on commit f37fdd3

Please sign in to comment.