--- loncom/interface/loncommon.pm 2025/02/03 19:07:54 1.1449
+++ loncom/interface/loncommon.pm 2025/02/03 22:52:36 1.1450
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.1449 2025/02/03 19:07:54 raeburn Exp $
+# $Id: loncommon.pm,v 1.1450 2025/02/03 22:52:36 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1174,7 +1174,8 @@ sub linked_select_forms {
$menuorder,
$onchangefirst,
$onchangesecond,
- $suffix
+ $suffix,
+ $haslabel
) = @_;
my $second = "document.$formname.$secondselectname";
my $first = "document.$formname.$firstselectname";
@@ -1240,6 +1241,9 @@ END
$result.=">".&mt($hashref->{$value}->{'text'})."\n";
}
$result .= "\n";
+ if ($haslabel) {
+ $result .= '';
+ }
my %select2;
if (ref($hashref->{$firstdefault}) eq 'HASH') {
if (ref($hashref->{$firstdefault}->{'select2'}) eq 'HASH') {
@@ -1247,6 +1251,9 @@ END
}
}
$result .= $middletext;
+ if ($middletext ne '') {
+ $result .= '';
+ }
# return $debug;
return $result;
} # end of sub linked_select_forms {
@@ -2300,7 +2310,7 @@ sub import_crsauthor_form {
dire => 'Directory',
se => 'Select',
);
- $output = $lt{'dire'}.': '.
+ $output = '
'."\n".
'';
return ($numdirs,$output);
}