--- loncom/html/res/adm/pages/menu.html 2003/11/10 00:39:28 1.111 +++ loncom/html/res/adm/pages/menu.html 2004/08/13 20:30:01 1.113 @@ -4,7 +4,7 @@ The LearningOnline Network with CAPA Remote Control // -// $Id: menu.html,v 1.111 2003/11/10 00:39:28 www Exp $ +// $Id: menu.html,v 1.113 2004/08/13 20:30:01 albertel Exp $ // // Copyright Michigan State University Board of Trustees // @@ -61,7 +61,6 @@ var currentSymb=''; var reloadSymb=''; var currentStale=1; var menucltim; - var clockdelta=0; var w_extdisp_flag=-1; @@ -81,6 +80,7 @@ var w_bmquery_flag=-1; var w_BookmarkPal_flag=-1; var w_LONcatInfo_flag=-1; var w_LONchat_flag=-1; +var w_loncapanav_flag=-1; // 1 means currently open // 0 means closed (but has been open) // -1 means never yet opened/defined @@ -103,6 +103,7 @@ for (var i=1;i<=3;i++) { var clienthost=window.location.host; var clientwindow=opener; +var navwindow; function syncclock(servertime) { var clientclock=new Date; @@ -150,6 +151,13 @@ function windowcheck() { extenddispclose(); } +function navwindowcheck() { + if (navwindow==null || navwindow.closed) { + navwindow=window.open("http://"+clienthost+"/adm/navmaps#curloc", + "loncapanav","height=600,width=400,scrollbars=1"); + } +} + function collapse() { if (autologout) { go('/adm/remote?action=collapse'); @@ -242,6 +250,7 @@ function go(url) { if (url!='' && url!= null) { currentURL = null; currentSymb= null; + this.document.server.target='loncapaclient'; this.document.server.action="http://"+clienthost+url; this.document.server.postdata.value=''; this.document.server.command.value=''; @@ -251,6 +260,25 @@ function go(url) { } } +function gonav(url) { + if (w_loncapanav_flag != 1) { + go(url); + } else { + navwindowcheck(); + statuslocked=0; + this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif"; + if (url!='' && url!= null) { + this.document.server.action="http://"+clienthost+url; + this.document.server.target="loncapanav"; + this.document.server.postdata.value=''; + this.document.server.command.value=''; + this.document.server.url.value=''; + this.document.server.postsymb.value=''; + this.document.server.submit(); + } + } +} + function gopost(url,postdata,makenewwin) { windowcheck(); statuslocked=0; @@ -262,6 +290,8 @@ function gopost(url,postdata,makenewwin) "height=400,width=540,"+ "scrollbars=1,toolbar=0,status=0,resizable=1,location=0,menubar=0"); this.document.server.target='LONcom'; + } else { + this.document.server.target='loncapaclient'; } this.document.server.action="http://"+clienthost+url; this.document.server.postdata.value=postdata; @@ -269,7 +299,6 @@ function gopost(url,postdata,makenewwin) this.document.server.url.value=''; this.document.server.postsymb.value=''; this.document.server.submit(); - this.document.server.target='loncapaclient'; } } @@ -278,6 +307,7 @@ function gocmd(url,cmd) { statuslocked=0; this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif"; if (url!='') { + this.document.server.target='loncapaclient'; this.document.server.action="http://"+clienthost+url; this.document.server.postdata.value=''; this.document.server.command.value=cmd;