Skip to content
Snippets Groups Projects
Commit 1cded1d1 authored by srosse's avatar srosse
Browse files

OO-696: fix an issue with tinymce and Firefox 17

parent 31e2804b
No related branches found
No related tags found
No related merge requests found
......@@ -245,19 +245,20 @@ function b_initEmPxFactor() {
function o_getMainWin() {
try {
if (window.opener && window.opener.OPOL) {
// use the opener when opener window is an OpenOLAT window
return window.opener;
} else if (window.OPOL) {
if (window.OPOL) {
// other cases the current window is the main window
return window;
}
} else if (window.opener && window.opener.OPOL) {
// use the opener when opener window is an OpenOLAT window
return window.opener;
}
} catch (e) {
if (o_info.debug) { // add webbrowser console log
o_logerr('Exception while getting main window. rror::"'+showerror(e));
}
if (B_AjaxLogger.isDebugEnabled()) { // add ajax logger
B_AjaxLogger.logDebug('Exception while getting main window. rror::"'+showerror(e), "functions.js");
if (console) { // add ajax logger
console.log('Exception while getting main window. rror::"'+showerror(e), "functions.js");
console.log(e);
}
}
throw "Can not find main OpenOLAT window";
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment