From e4f6febcfb6f1a299bf377befeebe2170ca95310 Mon Sep 17 00:00:00 2001
From: xue <>
Date: Wed, 7 Dec 2005 22:54:44 +0000
Subject:
---
framework/Web/UI/TClientScriptManager.php | 12 ++++++------
framework/Web/UI/WebControls/TCheckBox.php | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
(limited to 'framework/Web/UI')
diff --git a/framework/Web/UI/TClientScriptManager.php b/framework/Web/UI/TClientScriptManager.php
index c42e664d..ee7ca88f 100644
--- a/framework/Web/UI/TClientScriptManager.php
+++ b/framework/Web/UI/TClientScriptManager.php
@@ -277,10 +277,10 @@ class TClientScriptManager extends TComponent
{
if(count($this->_arrayDeclares))
{
- $str="\n";
+ $str.="\n//]]>\n\n";
$writer->write($str);
}
}
@@ -299,13 +299,13 @@ class TClientScriptManager extends TComponent
public function renderBeginScripts($writer)
{
if(count($this->_beginScripts))
- $writer->write("\n");
+ $writer->write("\n");
}
public function renderEndScripts($writer)
{
if(count($this->_endScripts))
- $writer->write("\n");
+ $writer->write("\n");
}
public function renderHiddenFields($writer)
@@ -324,7 +324,7 @@ class TClientScriptManager extends TComponent
{
if(count($this->_expandoAttributes))
{
- $str="\n";
+ $str.="\n//]]>\n\n";
$writer->write($str);
}
}
diff --git a/framework/Web/UI/WebControls/TCheckBox.php b/framework/Web/UI/WebControls/TCheckBox.php
index 6b3a2ae4..c5bd88d7 100644
--- a/framework/Web/UI/WebControls/TCheckBox.php
+++ b/framework/Web/UI/WebControls/TCheckBox.php
@@ -90,7 +90,7 @@ class TCheckBox extends TWebControl implements IPostBackDataHandler, IValidatabl
if($this->getCausesValidation())
$page->validate($this->getValidationGroup());
}
- $this->onCheckedChanged(new TEventParameter);
+ $this->onCheckedChanged(null);
}
/**
--
cgit v1.2.3