From b311d8dbb2d82a32abc5a7a922fae34367d710ec Mon Sep 17 00:00:00 2001 From: carlgmathisen <> Date: Wed, 29 Oct 2008 16:06:10 +0000 Subject: Issue 46 - TColorPicker - Output is missing alt tag --- HISTORY | 1 + framework/Web/UI/WebControls/TColorPicker.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index 1f20bcf8..46e39efc 100644 --- a/HISTORY +++ b/HISTORY @@ -55,6 +55,7 @@ NEW: Ticket#891 - Added method that returns table name to TActiveRecord (Michael BUG: Ticket#38 - (trac:835) TValidationSummary, works different when it's showing Javascript Validation than Server Validation (Carl) ENH: Ticket#32 - (trac:861) Implement ability to specify default service ID (Carl) ENH: Ticket#31 - (trac:867) Consider UTF MessageSource_XLIFF class file (Carl) +ENH: Ticket#46 - TColorPicker - Output is missing alt tag (Carl) Version 3.1.2 April 21, 2008 ============================ diff --git a/framework/Web/UI/WebControls/TColorPicker.php b/framework/Web/UI/WebControls/TColorPicker.php index fdc9bd32..67a4ccfe 100644 --- a/framework/Web/UI/WebControls/TColorPicker.php +++ b/framework/Web/UI/WebControls/TColorPicker.php @@ -4,7 +4,7 @@ * * @author Wei Zhuo * @link http://www.pradosoft.com/ - * @copyright Copyright © 2005-2008 PradoSoft + * @copyright Copyright © 2005-2008 PradoSoft * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Web.UI.WebControls @@ -203,6 +203,7 @@ class TColorPicker extends TTextBox $writer->addAttribute('style', "background-color:{$color};"); $writer->addAttribute('width', '20'); $writer->addAttribute('height', '20'); + $writer->addAttribute('alt', ''); $writer->renderBeginTag('img'); $writer->renderEndTag(); $writer->renderEndTag(); -- cgit v1.2.3