[LON-CAPA-cvs] cvs: loncom /interface lonindexer.pm

matthew lon-capa-cvs@mail.lon-capa.org
Thu, 14 Mar 2002 21:37:04 -0000


matthew		Thu Mar 14 16:37:04 2002 EDT

  Modified files:              
    /loncom/interface	lonindexer.pm 
  Log:
  Fix javascript error, bug #174
  
  
Index: loncom/interface/lonindexer.pm
diff -u loncom/interface/lonindexer.pm:1.37 loncom/interface/lonindexer.pm:1.38
--- loncom/interface/lonindexer.pm:1.37	Fri Mar  8 13:33:29 2002
+++ loncom/interface/lonindexer.pm	Thu Mar 14 16:37:04 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Directory Indexer
 #
-# $Id: lonindexer.pm,v 1.37 2002/03/08 18:33:29 matthew Exp $
+# $Id: lonindexer.pm,v 1.38 2002/03/14 21:37:04 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -232,9 +232,14 @@
 END
              }
         }
-	if ($ENV{'form.catalogmode'} eq 'groupimport') {
-	    $catalogmodefunctions.=<<END;
+        $catalogmodefunctions.=<<END;
 var acts='';
+function rep_dirpath(suffix,val) {
+    eval("document.forms.dirpath"+suffix+".acts.value=val");
+}
+END
+	if ($ENV{'form.catalogmode'} eq 'groupimport') {
+            $catalogmodefunctions.=<<END;
 function queue(val) {
     if (eval("document.forms."+val+".filelink.checked")) {
 	var l=val.length;
@@ -246,9 +251,6 @@
 	var v=val.substring(4,l);
 	document.forms.fileattr.acts.value+='0a'+v+'b';
     }
-}
-function rep_dirpath(suffix,val) {
-    eval("document.forms.dirpath"+suffix+".acts.value=val");
 }
 END
 	}