[LON-CAPA-cvs] cvs: loncom /interface loncreateuser.pm
raeburn
lon-capa-cvs@mail.lon-capa.org
Sun, 02 Jul 2006 12:18:06 -0000
raeburn Sun Jul 2 08:18:06 2006 EDT
Modified files:
/loncom/interface loncreateuser.pm
Log:
Removing duplicate definition of re2 var in setSections() javascript function. Also assignment of section selections to hidden form element was not firing in all cases - moved so it now is. Bug 4867.
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.127 loncom/interface/loncreateuser.pm:1.128
--- loncom/interface/loncreateuser.pm:1.127 Thu Jun 29 13:41:06 2006
+++ loncom/interface/loncreateuser.pm Sun Jul 2 08:18:01 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Create a user
#
-# $Id: loncreateuser.pm,v 1.127 2006/06/29 17:41:06 albertel Exp $
+# $Id: loncreateuser.pm,v 1.128 2006/07/02 12:18:01 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -378,7 +378,6 @@
var str = document.cu.elements[i].name;
var checkcurr = str.match(re1);
if (checkcurr != null) {
- var re2 = /^currsec_[a-zA-Z0-9]+_[a-zA-Z0-9]+_(\\w+)\$/;
if (document.cu.elements[i-1].checked == true) {
var re2 = /^currsec_[a-zA-Z0-9]+_[a-zA-Z0-9]+_(\\w+)\$/;
match = re2.exec(str);
@@ -439,8 +438,8 @@
}
}
}
- document.cu.elements[i+2].value = sections;
}
+ document.cu.elements[i+2].value = sections;
}
}
}