Index: lams_common/web/openUrls.js =================================================================== diff -u -r4290878496251ea618c56389b67adda2fe4f2e28 -r1ffbb65bd2369dff7b62be52c9dcd8b7712aa93f --- lams_common/web/openUrls.js (.../openUrls.js) (revision 4290878496251ea618c56389b67adda2fe4f2e28) +++ lams_common/web/openUrls.js (.../openUrls.js) (revision 1ffbb65bd2369dff7b62be52c9dcd8b7712aa93f) @@ -12,11 +12,32 @@ var teachWin = null; var adminWin = null; + function openSysAdmin() + { + 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'); + } + else + { + if(adminWin && adminWin.open && !adminWin.closed ) + { + adminWin.focus(); + } + 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.focus(); + } + } + } + function openAuthor( ) { //alert( "open author" ); //cannot check if window is still open on macIE 5 + // if(isMac) { authorWin = window.open('home.do?method=author','aWindow','width=796,height=570,resizable'); @@ -31,13 +52,13 @@ { authorWin = window.open('home.do?method=author','aWindow','width=796,height=570,resizable'); authorWin.focus(); - //parent.close(); } } } function openStaff( ) { + // if(isMac) { if(belowMinRes) @@ -64,6 +85,7 @@ function openLearner() { + // if(isMac) { learnWin = window.open('home.do?method=learner','lWindow','width=796,height=570,resizable,status=yes'); @@ -83,9 +105,10 @@ function openAdmin() { + // if(isMac) { - adminWin = window.open('admin/adminMenu.jsp','adWindow','width=796,height=570,resizable,location,menubar,scrollbars,dependent,status,toolbar'); + adminWin = window.open('home.do?method=admin','adWindow','width=796,height=570,resizable,location,menubar,scrollbars,dependent,status,toolbar'); } else { @@ -95,7 +118,7 @@ } else { - adminWin = window.open('admin/adminMenu.jsp','adWindow','width=796,height=570,resizable,location,menubar,scrollbars,dependent,status,toolbar'); + adminWin = window.open('home.do?method=admin','adWindow','width=796,height=570,resizable,location,menubar,scrollbars,dependent,status,toolbar'); adminWin.focus(); } }