summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrojaro <>2011-04-28 09:53:29 +0000
committerrojaro <>2011-04-28 09:53:29 +0000
commit772aca3f6347fbf0a5ea1e9f1e7844b2909c8f9f (patch)
tree38fad516bca2f4a7ed9514ca874a59a5d256488b
parent9b2b44cd173831c77861c7076d939e1659ed3ca2 (diff)
fixed #16
-rw-r--r--framework/Web/UI/WebControls/TDatePicker.php4
1 files changed, 3 insertions, 1 deletions
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();
}