Diff for /loncom/publisher/publisher.html between versions 1.31 and 1.34

version 1.31, 2003/08/01 20:32:05 version 1.34, 2003/11/21 21:07:38
Line 51  function getrfilename() { Line 51  function getrfilename() {
 function getactionfilename() {  function getactionfilename() {
   document.fileaction.filename.value=frameloc();    document.fileaction.filename.value=frameloc();
   var test=document.fileaction.action.selectedIndex;    var test=document.fileaction.action.selectedIndex;
   if (test == 4) { // trying to create a directory    if (test == 8) { // trying to create a directory
       if (document.fileaction.filename.value.indexOf('/adm/pubdir')!=-1) {        if (document.fileaction.filename.value.indexOf('/adm/pubdir')!=-1) {
           document.fileaction.filename.value=document.dpublisher.filename.value;            document.fileaction.filename.value=document.dpublisher.filename.value;
       }        }
Line 70  function getdelfilename() { Line 70  function getdelfilename() {
   document.del.submit();    document.del.submit();
 }  }
   
   function getcurseed() {
     if (parent.LONCAPAToBePublished.document.lonhomework
          &&
         parent.LONCAPAToBePublished.document.lonhomework.rndseed
          &&
         parent.LONCAPAToBePublished.document.lonhomework.rndseed.value) {
       return parent.LONCAPAToBePublished.document.lonhomework.rndseed.value;
     }
     return 0;
   }
   
 function getpostdata() {  function getpostdata() {
   document.printout.postdata.value=frameloc();    document.printout.postdata.value=frameloc();
     document.printout.curseed.value=getcurseed();
   document.printout.submit();    document.printout.submit();
 }  }
 </script>  </script>
Line 103  function getpostdata() { Line 115  function getpostdata() {
   <form name="printout" target="_parent" action="/adm/printout" target="LONCAPAToBePublished" method="post" onSubmit="getpostdata();">    <form name="printout" target="_parent" action="/adm/printout" target="LONCAPAToBePublished" method="post" onSubmit="getpostdata();">
     <td rowspan="2" bgcolor="#ccddaa" align="center">      <td rowspan="2" bgcolor="#ccddaa" align="center">
       <input type="hidden" name="postdata" value="" />        <input type="hidden" name="postdata" value="" />
         <input type="hidden" name="curseed" value="" />
       <input type="button" value="Print" onClick="getpostdata();" />        <input type="button" value="Print" onClick="getpostdata();" />
     </td>      </td>
   </form>    </form>
Line 137  function getpostdata() { Line 150  function getpostdata() {
                             <option value="newstyfile">New style file:</option>                              <option value="newstyfile">New style file:</option>
     <option value="newdir">New subdirectory:</option>      <option value="newdir">New subdirectory:</option>
     <option value="rename">Rename current file to:</option>      <option value="rename">Rename current file to:</option>
       <option value="rename">Move current file to:</option>
     <option value="copy">Copy current file to:</option>      <option value="copy">Copy current file to:</option>
   </select>&nbsp;<input type="text" name="newfilename" value="Type Name Here" onFocus="if (this.value == 'Type Name Here') this.value=''" />&nbsp;<input type="button" value="Go" onClick="getactionfilename();" />    </select>&nbsp;<input type="text" name="newfilename" value="Type Name Here" onFocus="if (this.value == 'Type Name Here') this.value=''" />&nbsp;<input type="button" value="Go" onClick="getactionfilename();" />
       </nobr>        </nobr>

Removed from v.1.31  
changed lines
  Added in v.1.34


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