--- loncom/html/res/adm/pages/menu.html 2001/03/21 15:56:57 1.23
+++ loncom/html/res/adm/pages/menu.html 2001/11/29 19:26:25 1.40
@@ -2,6 +2,33 @@
LON-CAPA Remote
@@ -17,7 +49,6 @@ Jan Guy Albertelli
@@ -27,6 +58,32 @@ statustop='';
statusbot='';
active=0;
+imgpath='/res/adm/pages/';
+
+var currentURL='';
+var currentStale=1;
+var menucltim;
+
+// not used (yet)
+// var w_Annotator;
+// var w_bmquery;
+// var w_BookmarkPal;
+// var w_LONcatInfo;
+
+//////////////////////////////////////
+var w_Annotator_flag=-1;
+var w_bmquery_flag=-1;
+var w_BookmarkPal_flag=-1;
+var w_LONcatInfo_flag=-1;
+ // 1 means currently open
+ // 0 means closed (but has been open)
+ // -1 means never yet opened/defined
+///////////////////////////////////////
+
+hr=new Array;
+db=new Array;
+dt=new Array;
+
clienthost=window.location.host;
clientwindow=opener;
@@ -41,11 +98,24 @@ function logout () {
windowcheck();
if (clientwindow.status!='MenuControl:nologout')
{
+ if (w_Annotator_flag!=-1 && annotator && !annotator.closed) {
+ annotator.close();
+ }
+ if (w_bmquery_flag!=-1 && bmquery && !bmquery.closed) {
+ bmquery.close();
+ }
+ if (w_BookmarkPal_flag!=-1 && bookmarkpal && !bookmarkpal.closed) {
+ bookmarkpal.close();
+ }
+ if (w_LONcatInfo_flag!=-1 && loncatinfo && !loncatinfo.closed) {
+ loncatinfo.close();
+ }
clientwindow.window.location.href="http://"+clienthost+"/adm/logout";
}
}
function activate () {
+ opener.menuloaded=1;
setTimeout('active=1;',2000);
}
@@ -56,6 +126,12 @@ function deactivate () {
function display(utext,ltext) {
var i; var ch;
this.window.focus();
+ if (typeof(utext)=="undefined") { utext=''; }
+ if (typeof(ltext)=="undefined") { ltext=''; }
+ if ((utext=='') && (ltext=='')) {
+ utext=statustop;
+ ltext=statusbot;
+ }
if (active) {
for (i=0;i<=7;i++) {
if (i"
+"");
annotator.document.close();
}
function set_bookmark() {
go('');
- prompt("Please enter a name for this bookmark.",
- clientwindow.window.location.href);
+ if (currentStale) {
+ clienttitle="Enter Title";
+ clienthref=currentURL;
+ } else {
+ clienttitle=clientwindow.document.title;
+ clienthref=clientwindow.location.pathname;
+ }
+ w_bmquery_flag=1;
+ bmquery=window.open('','bmquery','width=365,height=165,scrollbars=0');
+ bmquery.document.write(
+ "");
+ bmquery.document.close();
}
function edit_bookmarks() {
go('');
- window.open("http://"+clienthost+"/adm/bookmarks",
+ w_BookmarkPal_flag=1;
+ bookmarkpal=window.open("http://"+clienthost+"/adm/bookmarks",
"BookmarkPal", "width=400,height=505,scrollbars=0");
}
function catalog_info() {
go('');
- window.open(clientwindow.window.location.href+'.meta',"LONcatInfo");
+ w_LONcatInfo_flag=1;
+ loncatinfo=window.open(clientwindow.window.location.href+'.meta',"LONcatInfo");
}
// -->
-
+
-
+
-
+
+ |
+ |
+
-
+
+ |
+ |
+ |
+
+
+
+ |
+
+
+
+ |
+ |
+ |
+
+
+
+ |
+ |
+ |
+
+
+
+ |
+ |
+ |
+
+
+
+ |
+ |
+ |
+
+
+
+ |
+ |
+ |
+
+
+
+ |
+ |
+ |
+
+
+
+ |
+ |
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+