Diff for /loncom/publisher/publisher.html between versions 1.2 and 1.7

version 1.2, 2000/11/28 22:15:11 version 1.7, 2001/04/02 21:45:58
Line 5 Line 5
   
 function getfilename() {  function getfilename() {
    document.publisher.filename.value=parent.LONCAPAToBePublished.location.href;     document.publisher.filename.value=parent.LONCAPAToBePublished.location.href;
      if ((document.publisher.filename.value.charAt(
           document.publisher.filename.value.length-1)!='/') &&
          (document.publisher.filename.value.indexOf('/adm/pubdir')==-1)) {
           document.publisher.submit();
      } else {
         alert('Cannot publish directory');
      }
   }
   
   function getdfilename() {
     document.dpublisher.filename.value=parent.LONCAPAToBePublished.location.href;
     if (document.dpublisher.filename.value.indexOf('/adm/pubdir')==-1) {
         document.dpublisher.submit();
     }
   }
   
   function getrfilename() {
     document.rpublisher.filename.value=parent.LONCAPAToBePublished.location.href;
 }  }
   
 </script>  </script>
 </head>  </head>
 <body bgcolor="#FFFFFF">  <body bgcolor="#FFFFFF">
 <form name="publisher" action="/adm/publish" target="_parent" method="post"  <table><tr><td>
  onSubmit="getfilename();">  <form name="publisher" action="/adm/publish" target="_parent" method="post">
   <input type="hidden" name="filename" value="">
   <input type="button" value="Publish this Resource" onClick="getfilename();">
   </form></td><td>
   <form name="dpublisher" action="/adm/pubdir" target="LONCAPAToBePublished" 
   method="post">
   <input type="hidden" name="filename" value="">
   <input type="button" value="List Directory" onClick="getdfilename();">
   </form></td><td>
   <form name="rpublisher" action="/adm/retrieve" target="_parent" method="post"
    onSubmit="getrfilename();">
 <input type="hidden" name="filename" value="">  <input type="hidden" name="filename" value="">
 <input type="submit" value="Publish this Resource">  <input type="submit" value="Retrieve Old Version">
 <input type="submit" value="Publish this Directory">  </form></td><td>
 <input type="submit" value="Publish Directory and all Subdirectories">  <b>LON-CAPA Construction Space</b>
 </form>  </td></tr></table>
 </body>  </body>
 </html>  </html>
   

Removed from v.1.2  
changed lines
  Added in v.1.7


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