Index: lams_common/web/openUrls.js =================================================================== diff -u -r1ffbb65bd2369dff7b62be52c9dcd8b7712aa93f -rd2a4151fa575bbbbca113cf909f4d2819c545f08 --- lams_common/web/openUrls.js (.../openUrls.js) (revision 1ffbb65bd2369dff7b62be52c9dcd8b7712aa93f) +++ lams_common/web/openUrls.js (.../openUrls.js) (revision d2a4151fa575bbbbca113cf909f4d2819c545f08) @@ -14,9 +14,10 @@ function openSysAdmin() { + var orgId = document.forms[0].orgIdForSysAdmin.value; if(isMac) { - adminWin = window.open('home.do?method=sysadmin&orgId="javascript:document.forms[0].orgIdForSysAdmin.value;"','adWindow','width=796,height=570,resizable,location,menubar,scrollbars,dependent,status,toolbar'); + adminWin = window.open('home.do?method=sysadmin&orgId='+orgId,'adWindow','width=796,height=570,resizable,location,menubar,scrollbars,dependent,status,toolbar'); } else { @@ -26,21 +27,18 @@ } else { - adminWin = window.open('home.do?method=admin&orgId="javascript:document.forms[0].orgIdForSysAdmin.value;"','adWindow','width=796,height=570,resizable,location,menubar,scrollbars,dependent,status,toolbar'); + adminWin = window.open('home.do?method=sysadmin&orgId='+orgId,'adWindow','width=796,height=570,resizable,location,menubar,scrollbars,dependent,status,toolbar'); adminWin.focus(); } } } function openAuthor( ) { - //alert( "open author" ); - - //cannot check if window is still open on macIE 5 - // + var orgId = document.forms[0].orgIdForAuthor.value; if(isMac) { - authorWin = window.open('home.do?method=author','aWindow','width=796,height=570,resizable'); + authorWin = window.open('home.do?method=author&orgId='+orgId,'aWindow','width=796,height=570,resizable'); } else { @@ -50,24 +48,24 @@ } else { - authorWin = window.open('home.do?method=author','aWindow','width=796,height=570,resizable'); + authorWin = window.open('home.do?method=author&orgId='+orgId,'aWindow','width=796,height=570,resizable'); authorWin.focus(); } } } function openStaff( ) { - // + var orgId = document.forms[0].orgIdForStaff.value; if(isMac) { if(belowMinRes) { - teachWin = window.open('home.do?method=staff','tWindow','width=796,height=575,resizable,scrollbars'); + teachWin = window.open('home.do?method=staff&orgId='+orgId,'tWindow','width=796,height=575,resizable,scrollbars'); } else { - teachWin = window.open('home.do?method=staff','tWindow','width=779,height=575'); + teachWin = window.open('home.do?method=staff&orgId='+orgId,'tWindow','width=779,height=575'); } } else @@ -78,17 +76,17 @@ } else { - teachWin = window.open('home.do?method=staff','tWindow','width=779,height=575,resizable'); + teachWin = window.open('home.do?method=staff&orgId='+orgId,'tWindow','width=779,height=575,resizable'); } } } function openLearner() { - // + var orgId = document.forms[0].orgIdForStaff.value; if(isMac) { - learnWin = window.open('home.do?method=learner','lWindow','width=796,height=570,resizable,status=yes'); + learnWin = window.open('home.do?method=learner&orgId='+orgId,'lWindow','width=796,height=570,resizable,status=yes'); } else { @@ -98,17 +96,17 @@ } else { - learnWin = window.open('home.do?method=learner','lWindow','width=796,height=570,resizable,status=yes'); + learnWin = window.open('home.do?method=learner&orgId='+orgId,'lWindow','width=796,height=570,resizable,status=yes'); } } } function openAdmin() { - // + var orgId = document.forms[0].orgIdForAdmin.value; if(isMac) { - adminWin = window.open('home.do?method=admin','adWindow','width=796,height=570,resizable,location,menubar,scrollbars,dependent,status,toolbar'); + adminWin = window.open('home.do?method=admin&orgId='+orgId,'adWindow','width=796,height=570,resizable,location,menubar,scrollbars,dependent,status,toolbar'); } else { @@ -118,7 +116,7 @@ } else { - adminWin = window.open('home.do?method=admin','adWindow','width=796,height=570,resizable,location,menubar,scrollbars,dependent,status,toolbar'); + adminWin = window.open('home.do?method=admin&orgId='+orgId,'adWindow','width=796,height=570,resizable,location,menubar,scrollbars,dependent,status,toolbar'); adminWin.focus(); } }