[LON-CAPA-cvs] cvs: loncom /interface londocs.pm
www
lon-capa-cvs@mail.lon-capa.org
Fri, 10 Jun 2005 15:33:47 -0000
www Fri Jun 10 11:33:47 2005 EDT
Modified files:
/loncom/interface londocs.pm
Log:
JavaScript does not keep namespaces apart for functions and forms.
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.184 loncom/interface/londocs.pm:1.185
--- loncom/interface/londocs.pm:1.184 Thu Jun 9 16:41:38 2005
+++ loncom/interface/londocs.pm Fri Jun 10 11:33:45 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.184 2005/06/09 20:41:38 www Exp $
+# $Id: londocs.pm,v 1.185 2005/06/10 15:33:45 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1867,15 +1867,15 @@
if (!defined($message)) {
$message='Changes will become active for your current session after [_1], or the next time you log in.';
}
- $r->print(
-'<script>function reinit(tf) { tf.submit();'.$postexec.' }</script>'.
-'<form name="reinit" method="post" action="/adm/roles" target="loncapaclient">'.
+ $r->print("\n\n".
+'<script>function reinit(tf) { tf.submit();'.$postexec.' }</script>'."\n".
+'<form name="reinitform" method="post" action="/adm/roles" target="loncapaclient">'.
'<input type="hidden" name="orgurl" value="'.$url.
'" /><input type="hidden" name="selectrole" value="1" /><h3><font color="red">'.
&mt($message,' <input type="hidden" name="'.
$env{'request.role'}.'" value="1" /><input type="button" value="'.
&mt('re-initializing course').'" onClick="reinit(this.form)" />').
-$help{'Caching'}.'</font></h3></form>');
+$help{'Caching'}.'</font></h3></form>'."\n\n");
}
# ================================================================ Main Handler