Diff for /loncom/interface/createaccount.pm between versions 1.72.4.3 and 1.72.4.4

version 1.72.4.3, 2019/08/25 13:55:55 version 1.72.4.4, 2020/09/08 18:35:31
Line 570  sub javascript_validmail { Line 570  sub javascript_validmail {
     my %js_lt = &Apache::lonlocal::texthash (      my %js_lt = &Apache::lonlocal::texthash (
                email => 'The e-mail address you entered',                 email => 'The e-mail address you entered',
                notv  => 'is not a valid e-mail address',                 notv  => 'is not a valid e-mail address',
                avae  => 'A valid e-mail address is not formed when the value you entered',                 avae  => 'A valid e-mail address is not formed when the value you entered is combined with the required domain',
                isco  => 'is combined with the required domain',  
     );      );
     my $output =  "\n".'<script type="text/javascript">'."\n".      my $output =  "\n".'<script type="text/javascript">'."\n".
                   '// <![CDATA['."\n".                    '// <![CDATA['."\n".
Line 583  function validate_email(client) { Line 582  function validate_email(client) {
     var condition = '$condition';      var condition = '$condition';
     if (validmail(field,condition) == false) {      if (validmail(field,condition) == false) {
         if ((condition != undefined) && (condition != '')) {          if ((condition != undefined) && (condition != '')) {
             alert("$js_lt{'avae'}: "+field.value+" $js_lt{'isco'}: "+condition);              alert("$js_lt{'avae'}: "+condition);
         } else {          } else {
             alert("$js_lt{'email'}: "+field.value+" $js_lt{'notv'}.");              alert("$js_lt{'email'}: "+field.value+" $js_lt{'notv'}.");
         }          }

Removed from v.1.72.4.3  
changed lines
  Added in v.1.72.4.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>