Index: lams_central/web/common.js =================================================================== diff -u --- lams_central/web/common.js (revision 0) +++ lams_central/web/common.js (revision d982244c98351c4369d1401b1b4b27581ac4806f) @@ -0,0 +1,18 @@ + + + var instructionsWindow = null; + /** + * Launches the popup window for the instruction files + */ + function launchInstructionsPopup(url, formName, fieldName, type) { +// 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