--- loncom/publisher/publisher.html 2001/04/03 14:57:17 1.8
+++ loncom/publisher/publisher.html 2002/11/18 15:28:50 1.22
@@ -21,6 +21,14 @@ function getdfilename() {
}
}
+function getufilename() {
+ document.upublisher.filename.value=parent.LONCAPAToBePublished.location.href;
+ if (document.upublisher.filename.value.indexOf('/adm/pubdir')!=-1) {
+ document.upublisher.filename.value=document.dpublisher.filename.value;
+ }
+ document.upublisher.submit();
+}
+
function getrfilename() {
document.rpublisher.filename.value=parent.LONCAPAToBePublished.location.href;
if ((document.rpublisher.filename.value.charAt(
@@ -32,24 +40,111 @@ 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 getpostdata() {
+ document.printout.postdata.value=parent.LONCAPAToBePublished.location.href;
+ document.printout.submit();
+}
-
-
+
-
\ No newline at end of file
+