';
$listtype = 'in the course';
}
@@ -410,19 +410,22 @@ sub print_roster_form {
$showoff = ' checked="checked" ';
$showon = ' ';
}
- my $output = '
'.&mt('Your roster setting').'
';
+ my $output =
+ '
'
+ .'
';
return $output;
}
@@ -454,16 +457,25 @@ sub process_student_prefs {
&Apache::lonnet::appenv(\%changeHash);
my $result = &Apache::lonnet::put('publicroster',{$student => $showinroster,},$cdom,$cnum);
if ($result eq 'ok') {
- $output .= &mt('Display of your name in the student-viewable roster set to [_1].',$visibility);
+ $output .=
+ &Apache::lonhtmlcommon::confirm_success(
+ &mt('Display of your name in the student-viewable roster set to [_1].',''.$visibility.''));
} else {
- $output .= ''.&mt('Error occurred saving display setting.').'';
+ $output .=
+ &Apache::lonhtmlcommon::confirm_success(
+ &mt('Error occurred saving display setting.'),1);
}
} else {
- $output .= ''.&mt('Error occurred saving display setting.').'';
+ $output .=
+ &Apache::lonhtmlcommon::confirm_success(
+ &mt('Error occurred saving display setting.'),1);
}
} else {
- $output .= &mt('Display of your name in the student-viewable roster unchanged (set to [_1]).',$visibility);
+ $output .=
+ &Apache::lonhtmlcommon::confirm_success(
+ &mt('Display of your name in the student-viewable roster unchanged (set to [_1]).',''.$visibility.''));
}
+ $output = &Apache::loncommon::confirmwrapper($output);
return $output;
}