--- loncom/publisher/publisher.html 2003/08/01 20:32:05 1.31 +++ loncom/publisher/publisher.html 2003/11/21 21:07:38 1.34 @@ -51,7 +51,7 @@ function getrfilename() { 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; } @@ -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(); } @@ -103,6 +115,7 @@ function getpostdata() {
+
@@ -137,6 +150,7 @@ function getpostdata() { +