--- loncom/publisher/publisher.html 2001/03/29 21:56:53 1.4 +++ loncom/publisher/publisher.html 2001/04/02 21:45:58 1.7 @@ -5,10 +5,20 @@ 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() { document.dpublisher.filename.value=parent.LONCAPAToBePublished.location.href; + if (document.dpublisher.filename.value.indexOf('/adm/pubdir')==-1) { + document.dpublisher.submit(); + } } function getrfilename() { @@ -19,15 +29,14 @@ function getrfilename() {
-
+ - +
-
+ - +