--- loncom/publisher/publisher.html 2001/04/02 21:45:58 1.7 +++ loncom/publisher/publisher.html 2001/06/23 18:51:32 1.12 @@ -21,29 +21,102 @@ function getdfilename() { } } +function getufilename() { + document.upublisher.filename.value=parent.LONCAPAToBePublished.location.href; + if (document.upublisher.filename.value.indexOf('/adm/pubdir')==-1) { + document.upublisher.submit(); + } +} + function getrfilename() { document.rpublisher.filename.value=parent.LONCAPAToBePublished.location.href; + if ((document.rpublisher.filename.value.charAt( + document.rpublisher.filename.value.length-1)!='/') && + (document.rpublisher.filename.value.indexOf('/adm/pubdir')==-1)) { + document.rpublisher.submit(); + } else { + alert('Cannot retrieve directory'); + } +} + +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.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(); + } } - + +
+ + +
-
+ +
-
+ + + +
+
+ + + +
+
+
+ + + +
+
+ + + + +
+
- + + +
-LON-CAPA Construction Space -
+
+ + + + +
- \ No newline at end of file + +