Skip to content

Commit

Permalink
refinery#1084 Paste deactivates cancel button
Browse files Browse the repository at this point in the history
Case: The user selects an action in which a dialog is shown that
does not contain an iFrame (Paste from Word / Add Table).
Resolution: Keep the cancel button from receiving the close_dialog
event
  • Loading branch information
jcjohn committed Dec 13, 2011
1 parent 842125d commit 9437b93
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1774,7 +1774,7 @@ WYMeditor.INIT_DIALOG = function(wym, selected, isIframe) {

var selected = selected || wym.selected();
var dialog = $("#"+wym._options.dialogId);
var doc = $((isIframe ? dialog.find('iframe').contents() : document));
var doc = $(dialog.find('iframe').contents());
var dialogType = dialog.find('#wym_dialog_type').val();
if (wym._selected_image) {
var replaceable = $(wym._selected_image);
Expand Down

0 comments on commit 9437b93

Please sign in to comment.