[LON-CAPA-cvs] cvs: loncom /interface domainprefs.pm
raeburn
raeburn at source.lon-capa.org
Mon May 11 14:11:42 EDT 2015
raeburn Mon May 11 18:11:42 2015 EDT
Modified files:
/loncom/interface domainprefs.pm
Log:
- Use loncommon::select_language() for dropdown list for default language
in domain.
- Remove unwanted </span>.
Index: loncom/interface/domainprefs.pm
diff -u loncom/interface/domainprefs.pm:1.262 loncom/interface/domainprefs.pm:1.263
--- loncom/interface/domainprefs.pm:1.262 Mon May 4 15:43:47 2015
+++ loncom/interface/domainprefs.pm Mon May 11 18:11:42 2015
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set domain-wide configuration settings
#
-# $Id: domainprefs.pm,v 1.262 2015/05/04 15:43:47 raeburn Exp $
+# $Id: domainprefs.pm,v 1.263 2015/05/11 18:11:42 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -4716,11 +4716,8 @@
my $includeempty = 1;
$datatable .= &Apache::loncommon::select_datelocale($item,$defaults{$item},undef,$includeempty);
} elsif ($item eq 'lang_def') {
- my %langchoices = &get_languages_hash();
- $langchoices{''} = 'No language preference';
- %langchoices = &Apache::lonlocal::texthash(%langchoices);
- $datatable .= &Apache::loncommon::select_form($defaults{$item},$item,
- \%langchoices);
+ my $includeempty = 1;
+ $datatable .= &Apache::loncommon::select_language($item,$defaults{$item},$includeempty);
} else {
my $size;
if ($item eq 'portal_def') {
@@ -4789,7 +4786,7 @@
$datatable .= '<option value="'.$k.'"'.$selstr.'>'.$vpos.'</option>';
}
$datatable .= '</select> '.&mt('Internal ID:').
- '<input type="text" size="10" name="addinststatus" value="" /></span>'.
+ '<input type="text" size="10" name="addinststatus" value="" />'.
' '.&mt('(new)').
'</span></td><td class="LC_left_item"><span class="LC_nobreak">'.
&mt('Name displayed:').
More information about the LON-CAPA-cvs
mailing list