From 772aca3f6347fbf0a5ea1e9f1e7844b2909c8f9f Mon Sep 17 00:00:00 2001 From: rojaro <> Date: Thu, 28 Apr 2011 09:53:29 +0000 Subject: fixed #16 --- framework/Web/UI/WebControls/TDatePicker.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'framework') diff --git a/framework/Web/UI/WebControls/TDatePicker.php b/framework/Web/UI/WebControls/TDatePicker.php index c81d8bc1..1bac5a1c 100644 --- a/framework/Web/UI/WebControls/TDatePicker.php +++ b/framework/Web/UI/WebControls/TDatePicker.php @@ -803,7 +803,9 @@ class TDatePicker extends TTextBox $writer->addAttribute('class', $this->getCssClass().' TDatePickerImageButton'); if(!$this->getEnabled(true)) $writer->addAttribute('disabled', 'disabled'); - $writer->renderBeginTag('img'); + $writer->addAttribute('type', 'image'); + $writer->addAttribute('onclick', 'return false;'); + $writer->renderBeginTag('input'); $writer->renderEndTag(); } -- cgit v1.2.3