--- loncom/html/res/adm/pages/menu.html 2003/02/24 23:32:32 1.88 +++ loncom/html/res/adm/pages/menu.html 2003/04/11 15:28:23 1.94 @@ -4,7 +4,7 @@ The LearningOnline Network with CAPA Remote Control // -// $Id: menu.html,v 1.88 2003/02/24 23:32:32 albertel Exp $ +// $Id: menu.html,v 1.94 2003/04/11 15:28:23 albertel Exp $ // // Copyright Michigan State University Board of Trustees // @@ -36,7 +36,7 @@ Remote Control @@ -49,6 +49,9 @@ var active = 0; var dislocked = 1; var statuslocked = 0; +if (lonhttpdport == null) { + var lonhttpdport='8080'; +} var imgpath=':'+lonhttpdport+'/res/adm/pages/'; var fontpath=':'+lonhttpdport+'/adm/lonLCDfont/'; var currentURL=''; @@ -76,6 +79,7 @@ var w_Annotator_flag=-1; var w_bmquery_flag=-1; var w_BookmarkPal_flag=-1; var w_LONcatInfo_flag=-1; +var w_LONchat_flag=-1; // 1 means currently open // 0 means closed (but has been open) // -1 means never yet opened/defined @@ -146,6 +150,12 @@ function windowcheck() { extenddispclose(); } +function collapse() { + if (autologout) { + go('/adm/remote?action=collapse'); + } +} + function logout () { windowcheck(); @@ -161,6 +171,9 @@ function logout () { if (w_LONcatInfo_flag!=-1 && loncatinfo && !loncatinfo.closed) { loncatinfo.close(); } + if (w_LONchat_flag!=-1 && lonchat && !lonchat.closed) { + lonchat.close(); + } if (autologout) { clientwindow.window.location.href="http://"+clienthost+"/adm/logout"; } @@ -278,7 +291,7 @@ function gopost(url,postdata) { this.document.server.postdata.value=postdata; this.document.server.command.value=''; this.document.server.url.value=''; - this.document.server.symb.value=''; + this.document.server.postsymb.value=''; this.document.server.submit(); } } @@ -292,7 +305,7 @@ function gocmd(url,cmd) { this.document.server.postdata.value=''; this.document.server.command.value=cmd; this.document.server.url.value=currentURL; - this.document.server.symb.value=currentSymb; + this.document.server.postsymb.value=currentSymb; this.document.server.submit(); } } @@ -356,7 +369,7 @@ function drawwindow() { ''+ '

LON-CAPA Extended Display Remote Control

'+ - ''+ + ' @@ -533,7 +552,7 @@ function catalog_info() { - +