[LON-CAPA-cvs] cvs: loncom /html/res/adm/pages menu.html /interface lonmenu.pm mydesk.tab
www
lon-capa-cvs@mail.lon-capa.org
Fri, 04 Apr 2003 22:00:26 -0000
www Fri Apr 4 17:00:26 2003 EDT
Modified files:
/loncom/html/res/adm/pages menu.html
/loncom/interface lonmenu.pm mydesk.tab
Log:
Open new window for chat.
Index: loncom/html/res/adm/pages/menu.html
diff -u loncom/html/res/adm/pages/menu.html:1.92 loncom/html/res/adm/pages/menu.html:1.93
--- loncom/html/res/adm/pages/menu.html:1.92 Fri Apr 4 14:35:04 2003
+++ loncom/html/res/adm/pages/menu.html Fri Apr 4 17:00:26 2003
@@ -4,7 +4,7 @@
Remote Control
//
-// $Id: menu.html,v 1.92 2003/04/04 19:35:04 www Exp $
+// $Id: menu.html,v 1.93 2003/04/04 22:00:26 www Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -79,6 +79,7 @@
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
@@ -170,6 +171,9 @@
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";
}
@@ -418,7 +422,13 @@
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');
}
// -->
</script>
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.56 loncom/interface/lonmenu.pm:1.57
--- loncom/interface/lonmenu.pm:1.56 Fri Apr 4 16:21:51 2003
+++ loncom/interface/lonmenu.pm Fri Apr 4 17:00:26 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.56 2003/04/04 21:21:51 www Exp $
+# $Id: lonmenu.pm,v 1.57 2003/04/04 22:00:26 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -713,6 +713,14 @@
this.document.server.symb.value=currentSymb;
this.document.server.submit();
}
+}
+
+function catalog_info() {
+ loncatinfo=window.open(window.location.pathname+'.meta',"LONcatInfo",'height=320,width=280,resizeable=yes,location=no,menubar=no,toolbar=no');
+}
+
+function chat_win() {
+ lonchat=window.open('/res/adm/pages/chatroom.html',"LONchat",'height=320,width=280,resizeable=yes,location=no,menubar=no,toolbar=no');
}
ENDUTILITY
}
Index: loncom/interface/mydesk.tab
diff -u loncom/interface/mydesk.tab:1.40 loncom/interface/mydesk.tab:1.41
--- loncom/interface/mydesk.tab:1.40 Wed Mar 26 16:41:37 2003
+++ loncom/interface/mydesk.tab Fri Apr 4 17:00:26 2003
@@ -53,7 +53,7 @@
10:1:any:any:anno.gif:calendar:announce:go('/adm/announcements');:Course announcements and my calendar
10:2:any:any:com.gif:commu-:nication:go('/adm/communicate');:Send and receive messages
10:3:clear
-10:3:course:any:bchat.gif:course:chat:go('/res/adm/pages/chatroom.html');:Enter the chatroom for the course
+10:3:course:any:bchat.gif:course:chat:chat_win();:Enter the chatroom for the course
11:1:clear
11:1:course:any:src.gif:search:course:go('/adm/searchcat');:Search the contents of this course
11:1:pbre:$requested_domain:src.gif:search:library:go('/adm/searchcat');:Search the database of published resources