[LON-CAPA-cvs] cvs: loncom /publisher lonpubdir.pm

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 22 Dec 2004 21:04:52 -0000


albertel		Wed Dec 22 16:04:52 2004 EDT

  Modified files:              
    /loncom/publisher	lonpubdir.pm 
  Log:
  - BUG#3745
  
  
Index: loncom/publisher/lonpubdir.pm
diff -u loncom/publisher/lonpubdir.pm:1.74 loncom/publisher/lonpubdir.pm:1.75
--- loncom/publisher/lonpubdir.pm:1.74	Wed Dec 15 14:15:59 2004
+++ loncom/publisher/lonpubdir.pm	Wed Dec 22 16:04:52 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Construction Space Directory Lister
 #
-# $Id: lonpubdir.pm,v 1.74 2004/12/15 19:15:59 albertel Exp $
+# $Id: lonpubdir.pm,v 1.75 2004/12/22 21:04:52 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -269,7 +269,7 @@
 
     function SetPubDir(theform,printForm) {
         if (theform.diraction.options[theform.diraction.selectedIndex].value == "open") {
-            top.location = theform.filename.value
+            top.location = theform.openname.value
             return
         }
         if (theform.diraction.options[theform.diraction.selectedIndex].value == "publish") {
@@ -517,6 +517,7 @@
                       '<option value="printdir">'.&mt('Print directory').
                     '</select>'.
                      '<input type="hidden" name="filename" value="'.$dirpath.'/'.$dirname.'/" />'.
+                     '<input type="hidden" name="openname" value="'.$here.'/'.$dirname.'/" />'.
                      '<input type="hidden" name="pubrec" value="" />'.
                      '<input type="hidden" name="forcerepub" value="" />'.
                      '<input type="hidden" name="postdata" value="" />'.