--- loncom/publisher/publisher.html 2001/04/03 14:57:17 1.8 +++ loncom/publisher/publisher.html 2003/05/29 21:44:53 1.28 @@ -15,12 +15,20 @@ function getfilename() { } function getdfilename() { - document.dpublisher.filename.value=parent.LONCAPAToBePublished.location.href; + document.dpublisher.filename.value=unescape(parent.LONCAPAToBePublished.location.href); if (document.dpublisher.filename.value.indexOf('/adm/pubdir')==-1) { document.dpublisher.submit(); } } +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,105 @@ function getrfilename() { } } +function getactionfilename() { + document.fileaction.filename.value=parent.LONCAPAToBePublished.location.href; + var test=document.fileaction.action.selectedIndex; + if (test == 4) { // trying to create a directory + if (document.fileaction.filename.value.indexOf('/adm/pubdir')!=-1) { + document.fileaction.filename.value=document.dpublisher.filename.value; + } + if ((document.fileaction.filename.value.charAt( + document.fileaction.filename.value.length-1)!='/') && + (document.fileaction.filename.value.indexOf('/adm/pubdir')==-1)) { + alert('Must create new subdirectory inside a directory'); + return; + } + } + document.fileaction.submit(); +} + +function getdelfilename() { + document.del.filename.value=parent.LONCAPAToBePublished.location.href; + document.del.submit(); +} + +function getpostdata() { + document.printout.postdata.value=parent.LONCAPAToBePublished.location.href; + document.printout.submit(); +} - -
-- | - | - | -LON-CAPA Construction Space - |