[LON-CAPA-cvs] cvs: loncom /auth lonroles.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Wed, 21 Jul 2004 20:25:10 -0000
albertel Wed Jul 21 16:25:10 2004 EDT
Modified files:
/loncom/auth lonroles.pm
Log:
- Okay switching from course to author role colse the external nav window
Index: loncom/auth/lonroles.pm
diff -u loncom/auth/lonroles.pm:1.95 loncom/auth/lonroles.pm:1.96
--- loncom/auth/lonroles.pm:1.95 Wed Jul 21 15:54:43 2004
+++ loncom/auth/lonroles.pm Wed Jul 21 16:25:10 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# User Roles Screen
#
-# $Id: lonroles.pm,v 1.95 2004/07/21 19:54:43 albertel Exp $
+# $Id: lonroles.pm,v 1.96 2004/07/21 20:25:10 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -46,8 +46,11 @@
&Apache::loncommon::no_cache($r);
$r->send_http_header;
my $swinfo=&Apache::lonmenu::rawconfig();
+ my $navwindow;
if ($launch_nav eq 'on') {
- $swinfo.=&Apache::lonnavmaps::launch_win('now','no');
+ $navwindow.=&Apache::lonnavmaps::launch_win('now');
+ } else {
+ $navwindow.=&Apache::lonnavmaps::close();
}
my $bodytag=&Apache::loncommon::bodytag('Switching Role');
# Note to style police:
@@ -59,9 +62,10 @@
</head>
<html>
$bodytag
-<script>
+<script type="text/javascript">
$swinfo
</script>
+$navwindow
<h1>$msg</h1>
<a href="$url">Continue</a>
</body>