[limb-svn] r7053 - 3.x/trunk/limb/wact/src/components/form

svn at limb-project.com svn at limb-project.com
Thu Jun 5 15:35:34 MSD 2008


Author: 3dmax
Date: 2008-06-05 15:35:34 +0400 (Thu, 05 Jun 2008)
New Revision: 7053
URL: http://fisheye.limb-project.com/changelog/limb/?cs=7053

Modified:
   3.x/trunk/limb/wact/src/components/form/WactJSCheckboxComponent.class.php
   3.x/trunk/limb/wact/src/components/form/WactOptionRenderer.class.php
Log:
-- minor WACT tag fixes

Modified: 3.x/trunk/limb/wact/src/components/form/WactJSCheckboxComponent.class.php
===================================================================
--- 3.x/trunk/limb/wact/src/components/form/WactJSCheckboxComponent.class.php	2008-06-05 10:21:09 UTC (rev 7052)
+++ 3.x/trunk/limb/wact/src/components/form/WactJSCheckboxComponent.class.php	2008-06-05 11:35:34 UTC (rev 7053)
@@ -2,9 +2,9 @@
 /*
  * Limb PHP Framework
  *
- * @link http://limb-project.com 
+ * @link http://limb-project.com
  * @copyright  Copyright © 2004-2007 BIT(http://bit-creative.com)
- * @license    LGPL http://www.gnu.org/copyleft/lesser.html 
+ * @license    LGPL http://www.gnu.org/copyleft/lesser.html
  */
 
 /**
@@ -42,7 +42,7 @@
     $title = $this->getAttribute('title');
     $title = $title ? 'title=\''.$title.'\'' : '';
 
-    echo "<input type='checkbox' id='{$box_id}' {$checked} {$js} {$title}>";
+    echo "<input type='checkbox' id='{$box_id}' {$checked} {$js} {$title} />";
   }
 }
 

Modified: 3.x/trunk/limb/wact/src/components/form/WactOptionRenderer.class.php
===================================================================
--- 3.x/trunk/limb/wact/src/components/form/WactOptionRenderer.class.php	2008-06-05 10:21:09 UTC (rev 7052)
+++ 3.x/trunk/limb/wact/src/components/form/WactOptionRenderer.class.php	2008-06-05 11:35:34 UTC (rev 7053)
@@ -2,9 +2,9 @@
 /*
  * Limb PHP Framework
  *
- * @link http://limb-project.com 
+ * @link http://limb-project.com
  * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
- * @license    LGPL http://www.gnu.org/copyleft/lesser.html 
+ * @license    LGPL http://www.gnu.org/copyleft/lesser.html
  */
 
 require_once 'limb/wact/src/components/form/form.inc.php';
@@ -23,7 +23,6 @@
   * Renders an option, sending directly to display.
   * Called from WactSelectSingleComponent or WactSelectMultipleComponent
   * in their renderContents() method
-  * @todo XTHML: selected="selected"
   * @param string value to place within the option value attribute
   * @param string contents of the option tag
   * @param boolean whether the option is selected or not
@@ -35,7 +34,7 @@
     echo htmlspecialchars($key, ENT_QUOTES);
     echo '"';
     if ($selected) {
-        echo " selected=\"true\"";
+        echo " selected=\"selected\"";
     }
     echo '>';
     if (empty($contents)) {



More information about the limb-svn mailing list