Fisheye: Tag ffbc47494b72d5222b6fc95db0347f7732d93310 refers to a dead (removed) revision in file `lams_central/web/common.js'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_central/web/includes/javascript/common.js =================================================================== diff -u --- lams_central/web/includes/javascript/common.js (revision 0) +++ lams_central/web/includes/javascript/common.js (revision ffbc47494b72d5222b6fc95db0347f7732d93310) @@ -0,0 +1,18 @@ + + + var instructionsWindow = null; + /** + * Launches the popup window for the instruction files + */ + function launchInstructionsPopup(url) { +// add the mac test back in when we have the platform detection working. +// if(mac){ +// window.open(url,'instructions','resizable,width=796,height=570,scrollbars'); +// }else{ + if(instructionsWindow && instructionsWindow.open && !instructionsWindow.closed){ + instructionsWindow.close(); + } + instructionsWindow = window.open(url,'instructions','resizable,width=796,height=570,scrollbars'); + instructionsWindow.window.focus(); +// } + } \ No newline at end of file Index: lams_contentrepository/doc/org/lamsfoundation/lams/contentrepository/client/ToolDownload.html =================================================================== diff -u -r420d00e2236663754afd02c3cedb598684bee219 -rffbc47494b72d5222b6fc95db0347f7732d93310 --- lams_contentrepository/doc/org/lamsfoundation/lams/contentrepository/client/ToolDownload.html (.../ToolDownload.html) (revision 420d00e2236663754afd02c3cedb598684bee219) +++ lams_contentrepository/doc/org/lamsfoundation/lams/contentrepository/client/ToolDownload.html (.../ToolDownload.html) (revision ffbc47494b72d5222b6fc95db0347f7732d93310) @@ -140,7 +140,7 @@ </tr>
- The launchInstructionsPopup() method is defined in common.js, available as http://.../lams/common.js. + The launchInstructionsPopup() method is defined in common.js, available as http://.../lams/includes/javascript/common.js.
For an example of this servlet being used, have a look at the lams_tool_imscp project. The jsps/authoring/forum/instructions.jsp calls the servlet and includes/header.jsp Index: lams_contentrepository/src/java/org/lamsfoundation/lams/contentrepository/client/ToolDownload.java =================================================================== diff -u -r0913afb336848e1d400326b0219be2a1d301cab8 -rffbc47494b72d5222b6fc95db0347f7732d93310 --- lams_contentrepository/src/java/org/lamsfoundation/lams/contentrepository/client/ToolDownload.java (.../ToolDownload.java) (revision 0913afb336848e1d400326b0219be2a1d301cab8) +++ lams_contentrepository/src/java/org/lamsfoundation/lams/contentrepository/client/ToolDownload.java (.../ToolDownload.java) (revision ffbc47494b72d5222b6fc95db0347f7732d93310) @@ -71,7 +71,7 @@ * </tr> * *
- * The launchInstructionsPopup() method is defined in common.js, available as http://.../lams/common.js. + * The launchInstructionsPopup() method is defined in common.js, available as http://.../lams/includes/javascript/common.js. *
* For an example of this servlet being used, have a look at the lams_tool_imscp project. * The jsps/authoring/forum/instructions.jsp calls the servlet and includes/header.jsp Index: lams_tool_forum/web/includes/header.jsp =================================================================== diff -u -r2c810bb0c592aa2a70f4c858f1b81a2e61c6012b -rffbc47494b72d5222b6fc95db0347f7732d93310 --- lams_tool_forum/web/includes/header.jsp (.../header.jsp) (revision 2c810bb0c592aa2a70f4c858f1b81a2e61c6012b) +++ lams_tool_forum/web/includes/header.jsp (.../header.jsp) (revision ffbc47494b72d5222b6fc95db0347f7732d93310) @@ -12,7 +12,7 @@