[LON-CAPA-cvs] cvs: loncom /interface loncreateuser.pm lonhtmlcommon.pm lonmeta.pm /interface/statistics lonstudentassessment.pm /publisher lonpublisher.pm

bisitz bisitz@source.lon-capa.org
Sat, 04 Apr 2009 20:06:49 -0000


bisitz		Sat Apr  4 20:06:49 2009 EDT

  Modified files:              
    /loncom/interface	loncreateuser.pm lonhtmlcommon.pm lonmeta.pm 
    /loncom/publisher	lonpublisher.pm 
    /loncom/interface/statistics	lonstudentassessment.pm 
  Log:
  XHTML:
  - Replaced
  checked="1"
  by
  checked="checked"
  
  - Optimized/Corrected white spaces
  
  
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.287 loncom/interface/loncreateuser.pm:1.288
--- loncom/interface/loncreateuser.pm:1.287	Sat Mar 14 13:30:09 2009
+++ loncom/interface/loncreateuser.pm	Sat Apr  4 20:06:37 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Create a user
 #
-# $Id: loncreateuser.pm,v 1.287 2009/03/14 13:30:09 raeburn Exp $
+# $Id: loncreateuser.pm,v 1.288 2009/04/04 20:06:37 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3141,14 +3141,14 @@
         my $privtext = &Apache::lonnet::plaintext($priv);
         $r->print(&Apache::loncommon::start_data_table_row().
 	          '<td>'.$privtext.'</td><td>'.
-    ($courselevel{$priv}?'<input type="checkbox" name="'.$priv.'_c" '.
-    ($courselevelcurrent{$priv}?'checked="1"':'').' />':'&nbsp;').
+    ($courselevel{$priv}?'<input type="checkbox" name="'.$priv.'_c"'.
+    ($courselevelcurrent{$priv}?' checked="checked"':'').' />':'&nbsp;').
     '</td><td>'.
-    ($domainlevel{$priv}?'<input type="checkbox" name="'.$priv.'_d" '.
-    ($domainlevelcurrent{$priv}?'checked="1"':'').' />':'&nbsp;').
+    ($domainlevel{$priv}?'<input type="checkbox" name="'.$priv.'_d"'.
+    ($domainlevelcurrent{$priv}?' checked="checked"':'').' />':'&nbsp;').
     '</td><td>'.
-    ($systemlevel{$priv}?'<input type="checkbox" name="'.$priv.'_s" '.
-    ($systemlevelcurrent{$priv}?'checked="1"':'').' />':'&nbsp;').
+    ($systemlevel{$priv}?'<input type="checkbox" name="'.$priv.'_s"'.
+    ($systemlevelcurrent{$priv}?' checked="checked"':'').' />':'&nbsp;').
     '</td>'.
              &Apache::loncommon::end_data_table_row());
     }
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.205 loncom/interface/lonhtmlcommon.pm:1.206
--- loncom/interface/lonhtmlcommon.pm:1.205	Wed Apr  1 14:22:11 2009
+++ loncom/interface/lonhtmlcommon.pm	Sat Apr  4 20:06:37 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common html routines
 #
-# $Id: lonhtmlcommon.pm,v 1.205 2009/04/01 14:22:11 amueller Exp $
+# $Id: lonhtmlcommon.pm,v 1.206 2009/04/04 20:06:37 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -285,7 +285,7 @@
         $Str .= 'value="'.$value.'"';
     } 
     if ($checked) {
-        $Str .= ' checked="1"';
+        $Str .= ' checked="checked"';
     }
     $Str .= ' />';
     return $Str;
@@ -307,7 +307,7 @@
         $Str .= 'value="'.$value.'"';
     } 
     if ($checked eq $value) {
-        $Str .= ' checked="1"';
+        $Str .= ' checked="checked"';
     }
     $Str .= ' />';
     return $Str;
Index: loncom/interface/lonmeta.pm
diff -u loncom/interface/lonmeta.pm:1.228 loncom/interface/lonmeta.pm:1.229
--- loncom/interface/lonmeta.pm:1.228	Sat Apr  4 00:38:13 2009
+++ loncom/interface/lonmeta.pm	Sat Apr  4 20:06:37 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Metadata display handler
 #
-# $Id: lonmeta.pm,v 1.228 2009/04/04 00:38:13 raeburn Exp $
+# $Id: lonmeta.pm,v 1.229 2009/04/04 20:06:37 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -578,7 +578,7 @@
         return $relatedsep.'&nbsp;';
     }
     return $relatedsep.'<input type="checkbox" name="'.$fieldname.'_related"'.
-	($relatedvalue?' checked="1"':'').' />';
+	($relatedvalue?' checked="checked"':'').' />';
 }
 
 sub prettyinput {
@@ -691,7 +691,7 @@
     # Obsolete
     if ($type eq 'obsolete') {
 	return '<input type="checkbox" name="'.$fieldname.'"'.
-	    ($value?' checked="1"':'').' />'.
+	    ($value?' checked="checked"':'').' />'.
             &relatedfield(0,$relatedsearchflag,$relatedsep); 
     }
     # Obsolete replacement file
Index: loncom/publisher/lonpublisher.pm
diff -u loncom/publisher/lonpublisher.pm:1.255 loncom/publisher/lonpublisher.pm:1.256
--- loncom/publisher/lonpublisher.pm:1.255	Fri Apr  3 16:41:13 2009
+++ loncom/publisher/lonpublisher.pm	Sat Apr  4 20:06:43 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Publication Handler
 #
-# $Id: lonpublisher.pm,v 1.255 2009/04/03 16:41:13 bisitz Exp $
+# $Id: lonpublisher.pm,v 1.256 2009/04/04 20:06:43 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1401,9 +1401,9 @@
 				 (&Apache::loncommon::source_copyrightids));
 #	$intr_scrout.=&text_with_browse_field('Source Custom Distribution File','sourcerights',$metadatafields{'sourcerights'},'rights');
 	my $uctitle=&mt('Obsolete');
-        my $obsolete_checked=($metadatafields{'obsolete'})?' checked="1" ':'';
+        my $obsolete_checked=($metadatafields{'obsolete'})?' checked="checked" ':'';
         $intr_scrout.="\n".&Apache::lonhtmlcommon::row_title($uctitle)
-                     .'<input type="checkbox" name="obsolete" '.$obsolete_checked.'/ >'
+                     .'<input type="checkbox" name="obsolete"'.$obsolete_checked.' />'
                      .&Apache::lonhtmlcommon::row_closure(1);
         $intr_scrout.=&text_with_browse_field('Suggested Replacement for Obsolete File',
 				    'obsoletereplacement',
Index: loncom/interface/statistics/lonstudentassessment.pm
diff -u loncom/interface/statistics/lonstudentassessment.pm:1.151 loncom/interface/statistics/lonstudentassessment.pm:1.152
--- loncom/interface/statistics/lonstudentassessment.pm:1.151	Tue Oct 14 15:16:58 2008
+++ loncom/interface/statistics/lonstudentassessment.pm	Sat Apr  4 20:06:49 2009
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: lonstudentassessment.pm,v 1.151 2008/10/14 15:16:58 www Exp $
+# $Id: lonstudentassessment.pm,v 1.152 2009/04/04 20:06:49 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -675,7 +675,7 @@
         $r->print(<<NEW_WINDOW_CHECKBOX);
 <script type="text/javascript">new_window = true;</script>
 <p><label>$labeltext 
-<input type="checkbox" checked="1" onclick="new_window=this.checked" />
+<input type="checkbox" checked="checked" onclick="new_window=this.checked" />
 </label></p>
 NEW_WINDOW_CHECKBOX
     }