--- loncom/html/res/adm/pages/menu.html 2003/04/02 21:23:04 1.90 +++ loncom/html/res/adm/pages/menu.html 2003/04/04 22:00:26 1.93 @@ -4,7 +4,7 @@ The LearningOnline Network with CAPA Remote Control // -// $Id: menu.html,v 1.90 2003/04/02 21:23:04 www Exp $ +// $Id: menu.html,v 1.93 2003/04/04 22:00:26 www Exp $ // // Copyright Michigan State University Board of Trustees // @@ -36,7 +36,7 @@ Remote Control @@ -79,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 @@ -149,6 +150,12 @@ function windowcheck() { extenddispclose(); } +function collapse() { + if (autologout) { + go('/adm/remote?action=collapse'); + } +} + function logout () { windowcheck(); @@ -164,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"; } @@ -281,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(); } } @@ -295,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(); } } @@ -412,7 +422,13 @@ function edit_bookmarks() { function catalog_info() { go(''); w_LONcatInfo_flag=1; - loncatinfo=window.open(clientwindow.window.location.pathname+'.meta',"LONcatInfo"); + loncatinfo=window.open(clientwindow.window.location.pathname+'.meta',"LONcatInfo",'height=320,width=280,resizeable=yes,location=no,menubar=no,toolbar=no'); +} + +function chat_win() { + go(''); + w_LONchat_flag=1; + lonchat=window.open('/res/adm/pages/chatroom.html',"LONchat",'height=320,width=280,resizeable=yes,location=no,menubar=no,toolbar=no'); } // --> @@ -536,7 +552,7 @@ function catalog_info() { - +