--- loncom/interface/courseprefs.pm 2010/01/18 20:14:25 1.21
+++ loncom/interface/courseprefs.pm 2010/01/27 13:08:01 1.22
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set configuration settings for a course
#
-# $Id: courseprefs.pm,v 1.21 2010/01/18 20:14:25 raeburn Exp $
+# $Id: courseprefs.pm,v 1.22 2010/01/27 13:08:01 wenzelju Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -862,16 +862,16 @@ sub store_changes {
$output .= '
'.&mt($prefs->{$item}{'text'}).'
';
if (ref($changes->{$item}) eq 'HASH') {
if (keys(%{$changes->{$item}}) > 0) {
- $output .= &mt('Changes made:').'';
+ $output .= &mt('Changes made:').'';
if ($item eq 'other') {
foreach my $key (sort(keys(%{$changes->{$item}}))) {
$storehash{$key} = $changes->{$item}{$key};
if ($changes->{$item}{$key} eq '') {
push(@delkeys,$key);
- $output .= '- '.&mt('Deleted setting for [_1]',''.$key.'').'
';
+ $output .= '- '.&Apache::lonhtmlcommon::confirm_success(&mt('Deleted setting for [_1]',''.$key.'')).'
';
} else {
- $output .= '- '.&mt('[_1] set to [_2]',''.$key.'',
- "'$storehash{$key}'").'
';
+ $output .= '- '.&Apache::lonhtmlcommon::confirm_success(&mt('[_1] set to [_2]',''.$key.'',
+ "'$storehash{$key}'")).'
';
}
}
} else {
@@ -903,7 +903,7 @@ sub store_changes {
"'".$newname."'").'';
}
if ($msg ne '') {
- $output .= '- '.&mt($displayname).'
';
+ $output .= '- '.&Apache::lonhtmlcommon::confirm_success(&mt($displayname)).'
';
}
} else {
next if (!exists($changes->{$item}{$key}));
@@ -978,12 +978,12 @@ sub store_changes {
}
if ($changes->{$item}{$key} eq '') {
push(@delkeys,$key);
- $output .= '- '.&mt('Deleted setting for [_1]',
- ''.$displayname.'').'
';
+ $output .= '- '.&Apache::lonhtmlcommon::confirm_success(&mt('Deleted setting for [_1]',
+ ''.$displayname.'')).'
';
} else {
- $output .= '- '.&mt('[_1] set to [_2]',
+ $output .= '
- '.&Apache::lonhtmlcommon::confirm_success(&mt('[_1] set to [_2]',
''.$displayname.'',
- "'$displayval'");
+ "'$displayval'"));
if ($key eq 'url') {
my $bkuptime=time;
$output .= (' 'x2).&mt('(Previous URL backed up)').': '.