--- loncom/interface/lonpopulate.pm 2006/08/08 19:02:04 1.46 +++ loncom/interface/lonpopulate.pm 2006/08/10 21:46:40 1.47 @@ -1,5 +1,5 @@ # automated enrollment configuration handler -# $Id: lonpopulate.pm,v 1.46 2006/08/08 19:02:04 albertel Exp $ +# $Id: lonpopulate.pm,v 1.47 2006/08/10 21:46:40 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -113,30 +113,28 @@ function process(calling,numauto,nummanu } if (calling == "notify") { var totalnote = 0; - if (formName.notify[1].checked = true) { - for (var i=0; i 0) { - if (formName.notify[1].checked = true) { - if (confirm("You have indicated that you do not want notification of roster changes messages to be sent, but "+totalnote+" have been checked as recipients.\\nClick 'OK' to erase all recipients, or 'Cancel'.")) { - checker = 1; - } else { - checker = 0; - } - } - } else { - if (formName.notify[0].checked = true) { - alert("You have indicated that you want notification of roster changes messages to be sent, but you have not selected any recipients."); - checker = 0; - } - } + for (var i=0; i 0) { + if (formName.notify[1].checked == true) { + if (confirm("You have indicated that you do not want notification of roster changes messages to be sent, but "+totalnote+" have been checked as recipients.\\nClick 'OK' to erase all recipients, or 'Cancel'.")) { + checker = 1; + } else { + checker = 0; + } + } + } else { + if (formName.notify[0].checked == true) { + alert("You have indicated that you want notification of roster changes messages to be sent, but you have not selected any recipients."); + checker = 0; + } } } if (calling == "viewclass") {