--- loncom/publisher/publisher.html 2001/06/23 18:26:40 1.11 +++ loncom/publisher/publisher.html 2003/02/10 22:52:59 1.26 @@ -23,9 +23,10 @@ function getdfilename() { function getufilename() { document.upublisher.filename.value=parent.LONCAPAToBePublished.location.href; - if (document.upublisher.filename.value.indexOf('/adm/pubdir')==-1) { - document.upublisher.submit(); + if (document.upublisher.filename.value.indexOf('/adm/pubdir')!=-1) { + document.upublisher.filename.value=document.dpublisher.filename.value; } + document.upublisher.submit(); } function getrfilename() { @@ -39,74 +40,103 @@ function getrfilename() { } } +function getactionfilename() { + document.fileaction.filename.value=parent.LONCAPAToBePublished.location.href; + var test=document.fileaction.action.selectedIndex; + if (test == 4) { // trying to create a directory + if (document.fileaction.filename.value.indexOf('/adm/pubdir')!=-1) { + document.fileaction.filename.value=document.dpublisher.filename.value; + } + if ((document.fileaction.filename.value.charAt( + document.fileaction.filename.value.length-1)!='/') && + (document.fileaction.filename.value.indexOf('/adm/pubdir')==-1)) { + alert('Must create new subdirectory inside a directory'); + return; + } + } + document.fileaction.submit(); +} + function getdelfilename() { document.del.filename.value=parent.LONCAPAToBePublished.location.href; document.del.submit(); } -function getrenamefilename() { - document.rename.filename.value=parent.LONCAPAToBePublished.location.href; - document.rename.submit(); +function getpostdata() { + document.printout.postdata.value=parent.LONCAPAToBePublished.location.href; + document.printout.submit(); } - -function getnewdirfilename() { - document.newdir.filename.value=parent.LONCAPAToBePublished.location.href; - if ((document.newdir.filename.value.charAt( - document.newdir.filename.value.length-1)!='/') && - (document.newdir.filename.value.indexOf('/adm/pubdir')==-1)) { - alert('Must create new subdirectory inside a directory'); - } else { - document.newdir.submit(); - } -} - - - - - - - -
-
- - -
-
-
- - -
-
- - -
-
- - - -
-
-
- - - -
-
- - - - -
-
- - - - -
- - - + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + +
+ + + +
+ + +
+ + +
+ + + +
+ + +    + +
+
+
+ +