--- loncom/publisher/publisher.html 2002/12/26 15:38:54 1.23 +++ loncom/publisher/publisher.html 2003/02/04 20:33:19 1.24 @@ -40,33 +40,21 @@ function getrfilename() { } } -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 getcpfilename() { - document.cp.filename.value=parent.LONCAPAToBePublished.location.href; - document.cp.submit(); -} - -function getnewdirfilename() { - document.newdir.filename.value=parent.LONCAPAToBePublished.location.href; - if (document.newdir.filename.value.indexOf('/adm/pubdir')!=-1) { - document.newdir.filename.value=document.dpublisher.filename.value; - } - 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(); +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 getpostdata() { @@ -74,77 +62,68 @@ function getpostdata() { document.printout.submit(); } - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
- - -
- - -
- - - - -
- - - -
- - -
- - -
- - - -
- - - - -
- - - - -
-
-
- - - - - - + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + +
+ + + +
+ + +
+ + +
+ + +    + +
+
+
+ +