--- loncom/publisher/publisher.html 2001/04/09 18:22:07 1.9 +++ loncom/publisher/publisher.html 2001/06/24 01:40:14 1.13 @@ -39,6 +39,35 @@ 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(); + } +} + @@ -46,7 +75,8 @@ function getrfilename() {
-
+ +
@@ -59,9 +89,37 @@ method="post"> - +
- + + + +
+ + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+ + - \ No newline at end of file + +