Index: lams_central/web/includes/javascript/pedagogicalPlanner.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/pedagogicalPlanner.js,v diff -u -r1.27 -r1.28 --- lams_central/web/includes/javascript/pedagogicalPlanner.js 10 Apr 2011 16:25:17 -0000 1.27 +++ lams_central/web/includes/javascript/pedagogicalPlanner.js 21 Aug 2011 07:02:53 -0000 1.28 @@ -180,7 +180,6 @@ startPreview(startPreviewUrl); } else if (actionAfterCompleted==ACTION_OPEN_AUTHOR){ - window.resizeTo(authoring_width,authoring_height); var openAuthorURL = "home.do?method=author&learningDesignID=" + learningDesignId; if (requestSrc != "") { openAuthorURL += "&requestSrc=" + requestSrc; @@ -190,7 +189,15 @@ notifyCloseURL = notifyCloseURL.replace (/&/g, '%26'); openAuthorURL += "¬ifyCloseURL=" + notifyCloseURL; } - document.location.href = openAuthorURL; + if (window.opener == null) { + var wd = window.open(openAuthorURL,'aWindow','width=' + authoring_width + ',height=' + authoring_height + ',resizable'); + if (window.focus) { + wd.window.focus(); + } + } else { + window.resizeTo(authoring_width,authoring_height); + document.location.href = openAuthorURL; + } } else if (actionAfterCompleted==ACTION_EXPORT){ document.getElementById("downloadFileDummyIframe").src="pedagogicalPlanner.do?method=exportTemplate&ldId="+learningDesignId;