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

bisitz bisitz@source.lon-capa.org
Wed, 06 May 2009 13:39:17 -0000


bisitz		Wed May  6 13:39:17 2009 EDT

  Modified files:              
    /loncom/interface	lonuserutils.pm 
  Log:
  - Optimized white spaces for checked / selected attributes
  - Eliminate white spaces between HTML attribute and value
  
  
Index: loncom/interface/lonuserutils.pm
diff -u loncom/interface/lonuserutils.pm:1.90 loncom/interface/lonuserutils.pm:1.91
--- loncom/interface/lonuserutils.pm:1.90	Mon May  4 16:45:58 2009
+++ loncom/interface/lonuserutils.pm	Wed May  6 13:39:16 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Utility functions for managing LON-CAPA user accounts
 #
-# $Id: lonuserutils.pm,v 1.90 2009/05/04 16:45:58 bisitz Exp $
+# $Id: lonuserutils.pm,v 1.91 2009/05/06 13:39:16 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -328,7 +328,7 @@
         &javascript_validations('upload',$krbdefdom,$password_choice,undef,
                                 $env{'request.role.domain'},$context,
                                 $groupslist);
-    my $checked=(($env{'form.noFirstLine'})?' checked="checked" ':'');
+    my $checked=(($env{'form.noFirstLine'})?' checked="checked"':'');
     $r->print(&mt('Total number of records found in file: [_1]','<b>'.$distotal.'</b>').
               "<br />\n");
     $r->print('<div class="LC_left_float"><h3>'.
@@ -1332,7 +1332,7 @@
              .'</span></label>'.('&nbsp;'x3)."\n");
     my $roleselected = '';
     if ($env{'form.showrole'} eq 'Any') {
-       $roleselected = ' selected="selected" '; 
+       $roleselected = ' selected="selected"'; 
     }
     my ($cnum,$cdom);
     $r->print(&role_filter($context));
@@ -1526,7 +1526,7 @@
     my $output;
     my $roleselected = '';
     if ($env{'form.showrole'} eq 'Any') {
-       $roleselected = ' selected="selected" ';
+       $roleselected = ' selected="selected"';
     }
     my ($role_select);
     if ($context eq 'domain') {
@@ -1542,7 +1542,7 @@
         foreach my $role (@poss_roles) {
             $roleselected = '';
             if ($role eq $env{'form.showrole'}) {
-                $roleselected = ' selected="selected" ';
+                $roleselected = ' selected="selected"';
             }
             my $plrole;
             if ($role eq 'cr') {
@@ -2859,8 +2859,8 @@
             }
         }
         if ($choices{'sections'}) {
-            $output .= '<input type="hidden" name="retainsec" value= "" />'."\n".
-                       '<input type="hidden" name="newsecs" value= "" />'."\n";
+            $output .= '<input type="hidden" name="retainsec" value="" />'."\n".
+                       '<input type="hidden" name="newsecs" value="" />'."\n";
         }
     }
     return $output;