--- loncom/html/res/adm/pages/menu.html 2002/11/12 18:20:33 1.75 +++ loncom/html/res/adm/pages/menu.html 2003/01/29 15:22:06 1.84 @@ -4,7 +4,7 @@ The LearningOnline Network with CAPA Remote Control // -// $Id: menu.html,v 1.75 2002/11/12 18:20:33 www Exp $ +// $Id: menu.html,v 1.84 2003/01/29 15:22:06 www Exp $ // // Copyright Michigan State University Board of Trustees // @@ -58,6 +58,11 @@ var menucltim; var clockdelta=0; +var w_extdisp_flag=-1; +var extdisp; + +var autologout=1; + // not used (yet) // var w_Annotator; // var w_bmquery; @@ -136,6 +141,7 @@ function windowcheck() { } clientwindow.name='loncapaclient'; clientwindow.menuwindow=self; + extenddispclose(); } function logout () { @@ -153,8 +159,9 @@ function logout () { if (w_LONcatInfo_flag!=-1 && loncatinfo && !loncatinfo.closed) { loncatinfo.close(); } - clientwindow.window.location.href="http://"+clienthost+"/adm/logout"; - + if (autologout) { + clientwindow.window.location.href="http://"+clienthost+"/adm/logout"; + } } function activate () { @@ -220,6 +227,7 @@ function switchbutton(row,col,imgsrc,tex dt[idx]=texttop; db[idx]=textbot; ds[idx]=desc; + eval('this.document.links.link'+idx+'.title="'+desc+'"'); } function clearbut(row,col) { @@ -229,6 +237,7 @@ function clearbut(row,col) { dt[idx]=''; db[idx]=''; ds[idx]=''; + eval('this.document.links.link'+idx+'.title=""'); } function setstatus(tp,bt) { @@ -239,46 +248,10 @@ function setstatus(tp,bt) { defdis(); } -function is_editable_resource (url) { -// figure out if this a specific resource version - var Chunks = url.split('.'); - var tmp = Chunks[Chunks.length-1]; - if ((Chunks.length > 1) && (Math.floor(tmp) == tmp)) { - return false; - } -// see if this is actually in resource space - var SlashChunks=url.split('/'); - if (SlashChunks[1]!='res') { return false; } - return true; -} - -function cstrgo(currenturl,defaulturl) { - windowcheck(); - var url; - if ((currenturl == null) || - (currenturl == '') || - (! is_editable_resource(currenturl))) { - url = defaulturl; - } else { - var SlashChunks=currenturl.split('/'); - SlashChunks[1]='priv'; - var i; - for (i=2;i0) { + if (extdisp!=null && !extdisp.closed) { + extdisp.close(); + } + w_extdisp_flag=-1; + } +} + function extenddisp() { go(''); + w_extdisp_flag=1; extdisp=window.open("http://"+clienthost+"/adm/rat/empty.html", - "ExtDisp", "width=400,height=450"); + "ExtDisp", "scrollbars=1,width=400,height=450"); extdisp.document.clear(); extdisp.document.writeln( - ''+ + ''+ '

LON-CAPA Extended Display Remote Control

'+ ''+ - ''); + '
'+ + ''); for (var i=0; i<=ds.length; i++) { if (typeof(ds[i])!='undefined') { if (ds[i]!='') { extdisp.document.writeln( - ' - + @@ -465,66 +450,66 @@ function catalog_info() {
Select Functionality from BelowDescription

'+ + '
>>><<<
 
'+ ''); for (var j=0;j<=7;j++) { if (j
+> - +
@@ -440,7 +425,7 @@ function catalog_info() {
- - + + - - - + + + - + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + +