version 1.20, 2004/11/27 17:23:09
|
version 1.21, 2004/11/30 00:21:24
|
Line 90 ENDDOCUMENT
|
Line 90 ENDDOCUMENT
|
# if called from loncreateuser, report sections, then close |
# if called from loncreateuser, report sections, then close |
my ($loaditem,$seclist); |
my ($loaditem,$seclist); |
my $num_sections = 0; |
my $num_sections = 0; |
my @sections = (); |
|
if ($ENV{'form.form'} eq 'cu' && $ENV{'form.pickedcourse'}) { |
if ($ENV{'form.form'} eq 'cu' && $ENV{'form.pickedcourse'}) { |
$loaditem = 'onLoad="setSections()"'; |
$loaditem = 'onLoad="setSections()"'; |
my ($cdom,$cnum) = split/_/,$ENV{'form.pickedcourse'}; |
my ($cdom,$cnum) = split/_/,$ENV{'form.pickedcourse'}; |
Line 154 function setSections() {
|
Line 153 function setSections() {
|
var sectionsArray = new Array("$seclist") |
var sectionsArray = new Array("$seclist") |
opener.document.$ENV{"form.form"}.currsec.length = 0 |
opener.document.$ENV{"form.form"}.currsec.length = 0 |
if (numSections == 0) { |
if (numSections == 0) { |
opener.document.$ENV{"form.form"}.currsec.options[0] = new Option('No existing sections','-1',false,false) |
opener.document.$ENV{"form.form"}.currsec.options[0] = new Option('No existing sections','',false,false) |
} |
} |
else { |
else { |
for (var i=0; i<numSections; i++) { |
for (var i=0; i<numSections; i++) { |