--- loncom/publisher/publisher.html 2001/04/02 21:28:58 1.6 +++ loncom/publisher/publisher.html 2001/04/09 18:22:07 1.9 @@ -5,6 +5,13 @@ function getfilename() { document.publisher.filename.value=parent.LONCAPAToBePublished.location.href; + if ((document.publisher.filename.value.charAt( + document.publisher.filename.value.length-1)!='/') && + (document.publisher.filename.value.indexOf('/adm/pubdir')==-1)) { + document.publisher.submit(); + } else { + alert('Cannot publish directory'); + } } function getdfilename() { @@ -14,30 +21,47 @@ 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'); + } } -
-
+
+ - +
-
+ - +
-LON-CAPA Construction Space +
+ + + +
\ No newline at end of file