Diff for /loncom/publisher/lonupload.pm between versions 1.27 and 1.28

version 1.27, 2004/05/14 14:53:31 version 1.28, 2004/12/07 22:11:02
Line 100  sub phaseone { Line 100  sub phaseone {
   
  &Debug($r, "Filename for upload: $fn");   &Debug($r, "Filename for upload: $fn");
  if (($fn) && ($fn!~/\/$/)) {   if (($fn) && ($fn!~/\/$/)) {
     $r->print('<form action="'.$action.'" method="post">'.      $r->print('<form action="'.$action.'" method="post" name="fileupload">'.
       '<input type="hidden" name="phase" value="two" />'.        '<input type="hidden" name="phase" value="two" />'.
       '<input type="hidden" name="datatoken" value="'.        '<input type="hidden" name="datatoken" value="'.
       &upfile_store.'" />'.        &upfile_store.'" />'.
Line 258  sub handler { Line 258  sub handler {
     unless ($ENV{'form.phase'} eq 'two') {      unless ($ENV{'form.phase'} eq 'two') {
         $javascript = qq|          $javascript = qq|
 function verifyForm() {  function verifyForm() {
     var mode = document.forms[0].filetype.options[document.forms[0].filetype.selectedIndex].value      var mode = document.fileupload.filetype.options[document.fileupload.filetype.selectedIndex].value
     if (mode == "testbank") {      if (mode == "testbank") {
         document.forms[0].action = "/adm/testbank";          document.fileupload.action = "/adm/testbank";
     }      }
     if (mode == "imsimport") {      if (mode == "imsimport") {
         document.forms[0].action = "/adm/imsimport";          document.fileupload.action = "/adm/imsimport";
     }      }
     if (mode == "standard") {      if (mode == "standard") {
         document.forms[0].action = "/adm/upload";          document.fileupload.action = "/adm/upload";
     }      }
     document.forms[0].submit();      document.fileupload.submit();
 }  }
   
 function testbankWin() {  function testbankWin() {

Removed from v.1.27  
changed lines
  Added in v.1.28


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