Index: lams_central/web/includes/javascript/openUrls.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/openUrls.js,v diff -u -r1.29 -r1.30 --- lams_central/web/includes/javascript/openUrls.js 17 Nov 2008 06:02:57 -0000 1.29 +++ lams_central/web/includes/javascript/openUrls.js 20 Jan 2009 17:21:51 -0000 1.30 @@ -50,27 +50,26 @@ } } } - - function openAuthor() - { - + + function openAuthor(learningDesignId){ + var learningDesignParam = learningDesignId==null ? "":"&learningDesignID="+learningDesignId; if(isMac) - { - authorWin = window.open('home.do?method=author','aWindow','width=' + authoring_width + ',height=' + authoring_height + ',resizable'); - } - else - { - if(authorWin && !authorWin.closed) { - //authorWin.location = 'home.do?method=author'; - authorWin.focus(); + authorWin = window.open('home.do?method=author'+learningDesignParam,'aWindow','width=' + authoring_width + ',height=' + authoring_height + ',resizable'); } - else + else { - authorWin = window.open('home.do?method=author','aWindow','width=' + authoring_width + ',height=' + authoring_height + ',resizable'); - authorWin.focus(); + if(authorWin && !authorWin.closed) + { + //authorWin.location = 'home.do?method=author'; + authorWin.focus(); + } + else + { + authorWin = window.open('home.do?method=author'+learningDesignParam,'aWindow','width=' + authoring_width + ',height=' + authoring_height + ',resizable'); + authorWin.focus(); + } } - } } function openAuthorForEditOnFly( learningDesignID ) Index: lams_central/web/includes/javascript/pedagogicalPlanner.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/pedagogicalPlanner.js,v diff -u -r1.2 -r1.3 --- lams_central/web/includes/javascript/pedagogicalPlanner.js 20 Jan 2009 16:18:43 -0000 1.2 +++ lams_central/web/includes/javascript/pedagogicalPlanner.js 20 Jan 2009 17:21:51 -0000 1.3 @@ -6,6 +6,7 @@ var activitiesResponded = 0; //Number of activities that responded var actionAfterCompleted; //What action should be called if all activities were saved successfully var startPreviewUrl; //Url to start preview + var learningDesignId; //ID of the design to open var ACTION_DO_NOTHING = 0; //After successful submit do nothing var ACTION_PREVIEW = 1; //After successful submit start preview @@ -20,6 +21,9 @@ if (actionAfterCompleted==ACTION_PREVIEW){ startPreviewUrl=additionalParameter; } + else if (actionAfterCompleted==ACTION_OPEN_AUTHOR){ + learningDesignId=additionalParameter; + } callAttemptedID++; //Clear any current messages @@ -131,7 +135,7 @@ window.open(startPreviewUrl,'Preview','width=800,height=600,scrollbars=yes,resizable=yes'); } else if (actionAfterCompleted==ACTION_OPEN_AUTHOR){ - openAuthor(); + openAuthor(learningDesignId); } } else { Index: lams_central/web/pedagogical_planner/base.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/pedagogical_planner/Attic/base.jsp,v diff -u -r1.1 -r1.2 --- lams_central/web/pedagogical_planner/base.jsp 9 Dec 2008 05:40:33 -0000 1.1 +++ lams_central/web/pedagogical_planner/base.jsp 20 Jan 2009 17:21:51 -0000 1.2 @@ -139,6 +139,6 @@ - + \ No newline at end of file