[LON-CAPA-cvs] cvs: loncom /interface lonpopulate.pm
raeburn
raeburn at source.lon-capa.org
Thu Jan 8 20:49:34 EST 2026
raeburn Fri Jan 9 01:49:34 2026 EDT
Modified files:
/loncom/interface lonpopulate.pm
Log:
- Javascript pop-up confirm box: show number of people checked to receive
notification, when radio button for notification itself is set to OFF.
Index: loncom/interface/lonpopulate.pm
diff -u loncom/interface/lonpopulate.pm:1.92 loncom/interface/lonpopulate.pm:1.93
--- loncom/interface/lonpopulate.pm:1.92 Wed Feb 16 16:38:11 2022
+++ loncom/interface/lonpopulate.pm Fri Jan 9 01:49:34 2026
@@ -1,5 +1,5 @@
# automated enrollment configuration handler
-# $Id: lonpopulate.pm,v 1.92 2022/02/16 16:38:11 raeburn Exp $
+# $Id: lonpopulate.pm,v 1.93 2026/01/09 01:49:34 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -65,7 +65,7 @@
noed => 'You do not have rights to modify automated enrollment settings',
);
$js_lt{'both'} = &mt('You have selected "No" for both addition and removal of students[_1] in the institutional classlist but not in your LON-CAPA course.[_1]',"\n");
- $js_lt{'nnot'} = &mt('You have indicated that you do not want notification of roster changes messages to be sent, but [_1] have been checked as recipients.[_2]',"'+totalnote+'","\n");
+ $js_lt{'nnot'} = &mt('You have indicated that you do not want notification of roster changes messages to be sent. However, the number of people checked for notification is: ');
&js_escape(\%js_lt);
my $scripttag = '
@@ -155,7 +155,7 @@
}
if (totalnote > 0) {
if (formName.notify[1].checked == true) {
- if (confirm('$js_lt{'nnot'}$js_lt{'eras'}')) {
+ if (confirm('$js_lt{'nnot'}'+totalnote+'.\\n$js_lt{'eras'}')) {
checker = 1;
} else {
checker = 0;
More information about the LON-CAPA-cvs
mailing list