[LON-CAPA-cvs] cvs: loncom /interface londocs.pm
www
lon-capa-cvs@mail.lon-capa.org
Sun, 19 Jan 2003 11:57:24 -0000
www Sun Jan 19 06:57:24 2003 EDT
Modified files:
/loncom/interface londocs.pm
Log:
"re-initialize" button directly re-initializes course
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.43 loncom/interface/londocs.pm:1.44
--- loncom/interface/londocs.pm:1.43 Thu Dec 26 11:13:11 2002
+++ loncom/interface/londocs.pm Sun Jan 19 06:57:24 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.43 2002/12/26 16:13:11 www Exp $
+# $Id: londocs.pm,v 1.44 2003/01/19 11:57:24 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -593,7 +593,9 @@
$hadchanges=0;
&editor($r,$coursenum,$coursedom,$folder,$allowed);
if ($hadchanges) {
- $r->print('<h3><font color="red">Changes will become active after <a href="/adm/roles">re-initializing course</a> or at next login.</font></h3>');
+ $r->print('<form method="post" action="/adm/roles">'.
+'<input type=hidden name=orgurl value="/adm/coursedocs" /><input type=hidden name=selectrole value=1 /><h3><font color="red">Changes will become active after <input type="submit" name="'.
+$ENV{'request.role'}.'" value="re-initializing course" /> or at next login.</font></h3></font>');
}
my $folderseq='/uploaded/'.$coursedom.'/'.$coursenum.'/default_'.time.
'.sequence';