summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TCheckBox.php
diff options
context:
space:
mode:
authorxue <>2007-03-09 21:49:48 +0000
committerxue <>2007-03-09 21:49:48 +0000
commit1d2af84bffb5703a9bbd6bc5b07f983f22f3c369 (patch)
tree48877fb8fc7a6827ed6c65f9c975803240830430 /framework/Web/UI/WebControls/TCheckBox.php
parent8375e06bc985d25d6dadf146111fe8eaf40e8a26 (diff)
merge from 3.0 branch till 1755.
Diffstat (limited to 'framework/Web/UI/WebControls/TCheckBox.php')
-rw-r--r--framework/Web/UI/WebControls/TCheckBox.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TCheckBox.php b/framework/Web/UI/WebControls/TCheckBox.php
index df90fc9a..bf2f9d05 100644
--- a/framework/Web/UI/WebControls/TCheckBox.php
+++ b/framework/Web/UI/WebControls/TCheckBox.php
@@ -280,7 +280,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);