Diff for /loncom/interface/lonfeedback.pm between versions 1.202 and 1.203

version 1.202, 2006/05/10 22:29:57 version 1.203, 2006/05/10 22:47:22
Line 1419  END Line 1419  END
                   $parentmsg = $contrib{$idx.':replyto'};                    $parentmsg = $contrib{$idx.':replyto'};
               }                }
               unless (exists($env{'form.origpage'})) {                unless (exists($env{'form.origpage'})) {
                   my $anonflag = 0;                    my $anonflag = 'nonanon';
                   if ($contrib{$idx.':anonymous'}) {                    if ($contrib{$idx.':anonymous'}) {
                       $anonflag = 1;                        $anonflag = 'anon';
                   }                    }
                   $anonscript = (<<END);                    $anonscript = (<<END);
   function setposttype () {    function setposttype () {
       var currtype = $anonflag        var currtype = "$anonflag";
       if (currtype == 1) {        for (var i=0; i<document.mailform.discuss.length; i++) {
           document.mailform.elements.discuss.value = 'anon'    if (document.mailform.elements.discuss[i].value == currtype ) {
       }        document.mailform.elements.discuss[i].checked=1;
       if (currtype == 0) {    } 
           document.mailform.elements.discuss.value = 'nonanon'  
       }        }
       return        return
   }    }
Line 1456  END Line 1455  END
     function gosubmit() {      function gosubmit() {
         var rec=0;          var rec=0;
         if (typeof(document.mailform.elements.discuss)!="undefined") {          if (typeof(document.mailform.elements.discuss)!="undefined") {
     if (typeof(document.mailform.discuss.length) == "undefined") {      if (typeof(document.mailform.elements.discuss.length) == "undefined") {
  if (document.mailform.discuss.checked ) {   if (document.mailform.elements.discuss.checked ) {
     rec=1;      rec=1;
  }   }
     } else {      } else {
  for (var i=0; i<document.mailform.discuss.length; i++) {   for (var i=0; i<document.mailform.elements.discuss.length; i++) {
     if (document.mailform.discuss[i].checked ) {      if (document.mailform.elements.discuss[i].checked ) {
  rec=1;   rec=1;
     }       } 
  }   }
     }      }
  }   }
         if (typeof(document.mailform.elements.blog)!="undefined") {          if (typeof(document.mailform.elements.blog)!="undefined") {
           if (document.mailform.blog.checked) {            if (document.mailform.elements.blog.checked) {
              rec=1;               rec=1;
           }             } 
         }          }

Removed from v.1.202  
changed lines
  Added in v.1.203


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