Skip to content

Commit d0d4416

Browse files
committed
Fixing cancel button not actually closing the popup window
1 parent 32e4e43 commit d0d4416

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

assets/components/tinymce/tiny.browser.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,21 @@ Tiny.browserCallback = function(data) {
1616
win.ImageDialog.showPreviewImage(url);
1717
}
1818

19+
/* close */
20+
this.close();
21+
},
22+
close: function () {
1923
/* close popup window */
2024
tinyMCEPopup.close();
2125
win.focus(); win.document.focus();
2226
}
2327
};
28+
29+
if (data === null) {
30+
FileBrowserDialogue.close();
31+
return;
32+
}
33+
2434
var fileUrl;
2535
if (inRevo20) {
2636
fileUrl = unescape(data.relativeUrl);

0 commit comments

Comments
 (0)