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

raeburn raeburn@source.lon-capa.org
Mon, 29 Mar 2010 22:42:59 -0000


raeburn		Mon Mar 29 22:42:59 2010 EDT

  Modified files:              
    /loncom/interface	lonindexer.pm 
  Log:
  - Eliminate duplicate double quote added in rev 1.190.
  - Simplify quoting used for link to javascript:gothere(), used to open folder.
  
  
Index: loncom/interface/lonindexer.pm
diff -u loncom/interface/lonindexer.pm:1.203 loncom/interface/lonindexer.pm:1.204
--- loncom/interface/lonindexer.pm:1.203	Wed Dec  2 18:33:27 2009
+++ loncom/interface/lonindexer.pm	Mon Mar 29 22:42:58 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Directory Indexer
 #
-# $Id: lonindexer.pm,v 1.203 2009/12/02 18:33:27 bisitz Exp $
+# $Id: lonindexer.pm,v 1.204 2010/03/29 22:42:58 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1223,11 +1223,11 @@
         
         my $location = &Apache::loncommon::lonhttpdurl("/adm/lonIcons");
 	my $icon = "navmap.folder.".($nowOpen ? "open":"closed").'.gif';
-        $r->print ('<a href="javascript:gothere(\''
-		   .$quotable_curdir.'\')"">'
-		   .'<img class="LC_fileicon" alt="'.&mt('Open Folder').'" src="'.
-                   $location."/".$icon.'" />'.
-                   "\n");
+        $r->print ('<a href="javascript:gothere('
+                  ."'$quotable_curdir'".');">'
+                  .'<img class="LC_fileicon" alt="'.&mt('Open Folder').'" src="'
+                  .$location.'/'.$icon.'" />'
+                  ."\n");
 	$r->print ("$listname</a></form></td>\n");
 # Attributes
 	my $filelink = $startdir.$filecom[0].'/default';