diff options
author | xue <> | 2007-03-09 21:45:11 +0000 |
---|---|---|
committer | xue <> | 2007-03-09 21:45:11 +0000 |
commit | 121ce225fbaa5cce5c9a4901827e284faf05383d (patch) | |
tree | ef26e8a59ce0b75a00bc443ecf0db214c317cc06 | |
parent | 509d77129bf00b962c8b013963c9f2115383f2f9 (diff) |
Fixed #558.
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | framework/Web/UI/WebControls/TCheckBox.php | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -4,6 +4,7 @@ BUG: Ticket#481 - Unable to cancel navigation when handling OnSideBarButtonClick BUG: typo in THttpResponse.writeFile() about sending headers (Qiang) BUG: Ticket#505 - cultureInfo::getEnglishName does not return an arrary (Wei) BUG: Ticket#508 - CultureInfo class: PHP Notice because of missing static declaration (Wei) +BUG: Ticket#558 - TRadionButtonList generates a empty onclick attribute (Qiang) Version 3.0.6 December 4, 2006 ============================== diff --git a/framework/Web/UI/WebControls/TCheckBox.php b/framework/Web/UI/WebControls/TCheckBox.php index f6713cd4..4cabaa75 100644 --- a/framework/Web/UI/WebControls/TCheckBox.php +++ b/framework/Web/UI/WebControls/TCheckBox.php @@ -254,7 +254,8 @@ class TCheckBox extends TWebControl implements IPostBackDataHandler, IValidatabl $attributes=$this->getAttributes();
$value=$attributes->remove('value');
// onclick js should only be added to input tag
- $onclick=$attributes->remove('onclick');
+ if(($onclick=$attributes->remove('onclick'))===null)
+ $onclick='';
if($attributes->getCount())
{
$writer->addAttributes($attributes);
|