Skip to content

Commit

Permalink
Fixed confirmation dialog not properly handled within ClipboardHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdesign committed Jun 20, 2012
1 parent 73b8442 commit f37fdd3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wcfsetup/install/files/js/WCF.js
Expand Up @@ -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 {
Expand Down

0 comments on commit f37fdd3

Please sign in to comment.