Index: lams_central/web/includes/javascript/openUrls.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/openUrls.js,v diff -u -r1.17 -r1.18 --- lams_central/web/includes/javascript/openUrls.js 28 Sep 2006 06:36:13 -0000 1.17 +++ lams_central/web/includes/javascript/openUrls.js 13 Oct 2006 01:44:31 -0000 1.18 @@ -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)