--- loncom/interface/loncreateuser.pm 2006/06/28 18:18:44 1.124
+++ loncom/interface/loncreateuser.pm 2006/06/29 17:38:44 1.126
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Create a user
#
-# $Id: loncreateuser.pm,v 1.124 2006/06/28 18:18:44 albertel Exp $
+# $Id: loncreateuser.pm,v 1.126 2006/06/29 17:38:44 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -340,7 +340,7 @@ sub print_user_modification_page {
}
function setType() {
- var crstype = document.cu.crstype.options[document.cu.crstype.selectedIndex].value;
+ var crstype = 'Course'
rolevals = new Array("$rolevalslist");
if (crstype == 'Group') {
if (document.cu.currsec.options[0].text == "$pickcrsfirst") {
@@ -415,15 +415,17 @@ ENDSCRIPT
sections = document.cu.elements[i+1].value;
}
var newsecs = document.cu.elements[i+1].value;
+ var numsplit;
if (newsecs != null && newsecs != "") {
- var numsplit = newsecs.split(/,/g);
+ numsplit = newsecs.split(/,/g);
numsec = numsec + numsplit.length;
}
+
if ((role == 'st') && (numsec > 1)) {
alert("In each course, each user may only have one student role at a time. You had selected "+numsec+" sections.\\nPlease modify your selections so they include no more than one section.")
return;
}
- else {
+ else if (numsplit != null) {
for (var j=0; j'.
'';
my $courseform=''.&Apache::loncommon::selectcourse_link
- ('cu','dccourse','dcdomain','coursedesc',undef,undef,'Course/Group').'';
+ ('cu','dccourse','dcdomain','coursedesc',undef,undef,'Course').'';
my $cb_jscript = &Apache::loncommon::coursebrowser_javascript($dcdom);
my %lt=&Apache::lonlocal::texthash(
'typ' => "Type",
@@ -1894,14 +1896,9 @@ sub course_level_dc {
'ssd' => "Set Start Date",
'sed' => "Set End Date"
);
- my $header = '