Index: lams_central/web/includes/javascript/pedagogicalPlanner.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/pedagogicalPlanner.js,v diff -u -r1.8 -r1.9 --- lams_central/web/includes/javascript/pedagogicalPlanner.js 19 Feb 2009 14:01:30 -0000 1.8 +++ lams_central/web/includes/javascript/pedagogicalPlanner.js 25 Feb 2009 18:23:39 -0000 1.9 @@ -138,7 +138,7 @@ if (sequenceDetailsValid && activitiesValid==activitiesResponded){ $('#pedagogicalPlannerInfoArea').show(); if (actionAfterCompleted==ACTION_PREVIEW){ - window.open(startPreviewUrl,'Preview','width=800,height=600,scrollbars=yes,resizable=yes'); + startPreview(startPreviewUrl); } else if (actionAfterCompleted==ACTION_OPEN_AUTHOR){ window.resizeTo(authoring_width,authoring_height); @@ -154,6 +154,10 @@ } } + function startPreview(url){ + window.open(url,'Preview','width=800,height=600,scrollbars=yes,resizable=yes'); + } + function closePlanner(text){ if (text==null || confirm(text)){ window.close(); @@ -179,4 +183,6 @@ document.getElementById("fullDescriptionArea").style.display="none"; document.getElementById("fileArea").style.display="block"; } + + } \ No newline at end of file