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

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Sun, 20 Jan 2008 00:19:11 -0000


raeburn		Sat Jan 19 19:19:11 2008 EDT

  Modified files:              
    /loncom/interface	lonuserutils.pm 
  Log:
  Javascript error reported by IE when there are spaces in the title argument passed to open() function to open pop-up window used for date/section setting.
  
  
Index: loncom/interface/lonuserutils.pm
diff -u loncom/interface/lonuserutils.pm:1.48 loncom/interface/lonuserutils.pm:1.49
--- loncom/interface/lonuserutils.pm:1.48	Wed Jan 16 19:14:49 2008
+++ loncom/interface/lonuserutils.pm	Sat Jan 19 19:19:11 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Utility functions for managing LON-CAPA user accounts
 #
-# $Id: lonuserutils.pm,v 1.48 2008/01/17 00:14:49 raeburn Exp $
+# $Id: lonuserutils.pm,v 1.49 2008/01/20 00:19:11 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2665,20 +2665,14 @@
 
 sub date_section_javascript {
     my ($context,$setting) = @_;
-    my $title;
-    if (($context eq 'course') || ($context eq 'domain' && $setting eq 'course'))  {
-        $title = &mt('Date and Section selector');
-    } else {
-        $title = &mt('Date selector');
-    }
+    my $title = 'Date_And_Section_Selector';
     my %nopopup = &Apache::lonlocal::texthash (
         revoke => "Check the boxes for any users for whom roles are to be revoked, and click 'Proceed'",
         delete => "Check the boxes for any users for whom roles are to be deleted, and click 'Proceed'",
         none   => "Choose an action to take for selected users",
     );  
     my $output = '
-<script type="text/javascript">
-    var stdeditbrowser;'."\n";
+<script type="text/javascript">'."\n";
     $output .= <<"ENDONE";
     function opendatebrowser(callingform,formname,calledby) {
         var bulkaction = callingform.bulkaction.options[callingform.bulkaction.selectedIndex].value;