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

banghart lon-capa-cvs@mail.lon-capa.org
Mon, 12 Mar 2007 19:10:50 -0000


banghart		Mon Mar 12 15:10:50 2007 EDT

  Modified files:              
    /loncom/interface	lonmeta.pm 
  Log:
  	Bug 5202. Put proper attribute in <script> so javascript works.
  
  
Index: loncom/interface/lonmeta.pm
diff -u loncom/interface/lonmeta.pm:1.203 loncom/interface/lonmeta.pm:1.204
--- loncom/interface/lonmeta.pm:1.203	Mon Jan 22 23:25:56 2007
+++ loncom/interface/lonmeta.pm	Mon Mar 12 15:10:48 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Metadata display handler
 #
-# $Id: lonmeta.pm,v 1.203 2007/01/23 04:25:56 albertel Exp $
+# $Id: lonmeta.pm,v 1.204 2007/03/12 19:10:48 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -804,8 +804,10 @@
         &present_editable_metadata($r,$uri,'groups');    
     } elsif ($uri=~m|^/~|) { 
         # Construction space
-        $r->print(&Apache::loncommon::start_page('Edit Catalog nformation',
-						 undef,
+        $r->print(&Apache::loncommon::start_page('Edit Catalog Information',
+						"\n".'<script type="text/javascript">'."\n".
+                                                &Apache::loncommon::browser_and_searcher_javascript().
+                                                "\n".'</script>',
 						 {'domain' => $resdomain,}));
         &present_editable_metadata($r,$uri);
     } else {
@@ -1255,9 +1257,6 @@
 <h1>$displayfile</h1>
 <form method="post" action="" name="defaultmeta">
 ENDEDIT
-        $r->print('<script type="JavaScript">'.
-                  &Apache::loncommon::browser_and_searcher_javascript().
-                  '</script>');
         my %lt=&fieldnames($file_type);
 	my $output;
 	my @fields;