diff options
author | ctrlaltca@gmail.com <> | 2011-05-21 18:14:36 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-05-21 18:14:36 +0000 |
commit | 0892b27e326f14bd3f6229b55077ef5f9d5280b4 (patch) | |
tree | 24039ec47ba8977bf14ba435c058e758e901f185 /framework/Web/UI/WebControls/TDatePicker.php | |
parent | 6f00b28a1d9c7409c956a83866eac48a9493e83c (diff) |
branch/3.1: merged bugfixes from trunk/ up to current
Diffstat (limited to 'framework/Web/UI/WebControls/TDatePicker.php')
-rw-r--r-- | framework/Web/UI/WebControls/TDatePicker.php | 4 |
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();
}
|