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

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 03 Jul 2006 03:59:26 -0000


albertel		Sun Jul  2 23:59:26 2006 EDT

  Modified files:              
    /loncom/interface	portfolio.pm 
  Log:
  - making the code neater
  
  
Index: loncom/interface/portfolio.pm
diff -u loncom/interface/portfolio.pm:1.127 loncom/interface/portfolio.pm:1.128
--- loncom/interface/portfolio.pm:1.127	Sun Jul  2 19:15:47 2006
+++ loncom/interface/portfolio.pm	Sun Jul  2 23:59:25 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # portfolio browser
 #
-# $Id: portfolio.pm,v 1.127 2006/07/02 23:15:47 albertel Exp $
+# $Id: portfolio.pm,v 1.128 2006/07/03 03:59:25 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1408,11 +1408,7 @@
                     fileList = fileList + document.forms.checkselect.currentpath.value + document.forms.checkselect[i].value + "," ;
                 }
             }
-            opener.document.forms.lonhomework.
-ENDSMP
-    $javascript .= $env{'form.fieldname'};
-    $javascript .= (<<ENDSMP);
-        .value=fileList;
+            opener.document.forms.lonhomework.$env{'form.fieldname'}.value=fileList;
             self.close();
         }
         </script>