--- loncom/publisher/publisher.html 2003/08/01 20:32:05 1.31 +++ loncom/publisher/publisher.html 2004/03/02 16:55:01 1.36 @@ -18,7 +18,7 @@ function getfilename() { (document.publisher.filename.value.indexOf('/adm/pubdir')==-1)) { document.publisher.submit(); } else { - alert('Cannot publish directory'); + alert('MT{Cannot publish directory}'); } } @@ -44,21 +44,21 @@ function getrfilename() { (document.rpublisher.filename.value.indexOf('/adm/pubdir')==-1)) { document.rpublisher.submit(); } else { - alert('Cannot retrieve directory'); + alert('MT{Cannot retrieve directory}'); } } function getactionfilename() { document.fileaction.filename.value=frameloc(); var test=document.fileaction.action.selectedIndex; - if (test == 4) { // trying to create a directory + if (test == 8) { // 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'); + alert('MT{Must create new subdirectory inside a directory}'); return; } } @@ -70,8 +70,20 @@ function getdelfilename() { document.del.submit(); } +function getcurseed() { + if (parent.LONCAPAToBePublished.document.lonhomework + && + parent.LONCAPAToBePublished.document.lonhomework.rndseed + && + parent.LONCAPAToBePublished.document.lonhomework.rndseed.value) { + return parent.LONCAPAToBePublished.document.lonhomework.rndseed.value; + } + return 0; +} + function getpostdata() { document.printout.postdata.value=frameloc(); + document.printout.curseed.value=getcurseed(); document.printout.submit(); } @@ -83,13 +95,13 @@ function getpostdata() {
- +
- +
- +
- + +
@@ -112,14 +125,14 @@ function getpostdata() {
- +
- +
@@ -127,18 +140,19 @@ function getpostdata() {    + + + + + + + + + + + + +