Index: lams_central/web/includes/javascript/openUrls.js =================================================================== diff -u -r2c37ffdee2c64d231b2c8ae6c2efa88a83d9938d -r8631b0fa18d10b78cd3150b63cd7da4e6926d2b0 --- lams_central/web/includes/javascript/openUrls.js (.../openUrls.js) (revision 2c37ffdee2c64d231b2c8ae6c2efa88a83d9938d) +++ lams_central/web/includes/javascript/openUrls.js (.../openUrls.js) (revision 8631b0fa18d10b78cd3150b63cd7da4e6926d2b0) @@ -9,6 +9,7 @@ var authorWin = null; var learnWin = null; + var previewWin = null; var monitorLessonWin = null; var addLessonWin = null; var epWin = null; @@ -20,6 +21,7 @@ function closeAllChildren(){ if (authorWin && !authorWin.closed) authorWin.close(); if (learnWin && !learnWin.closed) learnWin.close(); + if (previewWin && !previewWin.closed) previewWin.close(); if (monitorLessonWin && !monitorLessonWin.closed) monitorLessonWin.close(); if (addLessonWin && !addLessonWin.closed) addLessonWin.close(); if (epWin && !epWin.closed) epWin.close(); @@ -143,6 +145,26 @@ } } + function openPreview( lessonId ) + { + if(isMac) + { + previewWin = window.open('home.do?method=learner&lessonID='+lessonId,'pWindow','width=796,height=570,resizable,status=yes'); + } + else + { + if(previewWin && !previewWin.closed ) + { + previewWin.location = 'home.do?method=learner&lessonID='+lessonId; + previewWin.focus(); + } + else + { + previewWin = window.open('home.do?method=learner&lessonID='+lessonId,'pWindow','width=796,height=570,resizable,status=yes'); + } + } + } + function openExportPortfolio( lessonId ) { if(isMac)