--- loncom/publisher/publisher.html 2001/04/02 21:28:58 1.6 +++ loncom/publisher/publisher.html 2001/04/02 21:45:58 1.7 @@ -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() { @@ -22,10 +29,9 @@ function getrfilename() {
-
+ - +