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

www lon-capa-cvs@mail.lon-capa.org
Thu, 17 Jul 2003 21:11:09 -0000


www		Thu Jul 17 17:11:09 2003 EDT

  Modified files:              
    /loncom/interface	lonindexer.pm 
  Log:
  Need to be able to see URL of previewed file, also for copy-paste
  
  
Index: loncom/interface/lonindexer.pm
diff -u loncom/interface/lonindexer.pm:1.68 loncom/interface/lonindexer.pm:1.69
--- loncom/interface/lonindexer.pm:1.68	Mon Jun 16 18:09:02 2003
+++ loncom/interface/lonindexer.pm	Thu Jul 17 17:11:09 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Directory Indexer
 #
-# $Id: lonindexer.pm,v 1.68 2003/06/16 22:09:02 albertel Exp $
+# $Id: lonindexer.pm,v 1.69 2003/07/17 21:11:09 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -318,10 +318,10 @@
 
 <script type="text/javascript">
 $catalogmodefunctions
-function openWindow(url, wdwName, w, h, toolbar,scrollbar) {
+function openWindow(url, wdwName, w, h, toolbar,scrollbar,locationbar) {
     var options = "width=" + w + ",height=" + h + ",";
     options += "resizable=yes,scrollbars="+scrollbar+",status=no,";
-    options += "menubar=no,toolbar="+toolbar+",location=no,directories=no";
+    options += "menubar=no,toolbar="+toolbar+",location="+locationbar+",directories=no";
     var newWin = window.open(url, wdwName, options);
     newWin.focus();
 }
@@ -820,11 +820,11 @@
 
 	$r->print("<img src=$iconpath$iconname border='0' />\n");
 	$r->print (" <a href=\"javascript:openWindow('".$filelink.
-		   "', 'metadatafile', '450', '500', 'no', 'yes')\";".
+		   "', 'previewfile', '450', '500', 'no', 'yes','yes')\";".
 		   " TARGET=_self>$listname</a> ");
 
 	$r->print (" (<a href=\"javascript:openWindow('".$filelink.
-		   ".meta', 'metadatafile', '400', '450', 'no', 'yes')\"; ".
+		   ".meta', 'metadatafile', '400', '450', 'no', 'yes','no')\"; ".
 		   "TARGET=_self>metadata</a>) ") if ($metafile == 1);
 
 	$r->print("</td>\n");