From 121ce225fbaa5cce5c9a4901827e284faf05383d Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 9 Mar 2007 21:45:11 +0000 Subject: Fixed #558. --- framework/Web/UI/WebControls/TCheckBox.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/Web') 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); -- cgit v1.2.3