diff options
author | xue <> | 2005-12-05 13:57:49 +0000 |
---|---|---|
committer | xue <> | 2005-12-05 13:57:49 +0000 |
commit | 703b3edacfbb12b57510d1ca441b6bbbb2fc16ab (patch) | |
tree | 9cdffc4d80faef0646fab2f5a404c9a20a3d91d2 /framework/Web/UI/WebControls/TButton.php | |
parent | f2cb7a3cf82f4788e4e96bd42fa617d6ea8e0fb0 (diff) |
Diffstat (limited to 'framework/Web/UI/WebControls/TButton.php')
-rw-r--r-- | framework/Web/UI/WebControls/TButton.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/framework/Web/UI/WebControls/TButton.php b/framework/Web/UI/WebControls/TButton.php index 6c423d84..2de4e22a 100644 --- a/framework/Web/UI/WebControls/TButton.php +++ b/framework/Web/UI/WebControls/TButton.php @@ -3,9 +3,9 @@ * TButton class file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
- * @link http://www.xisc.com/
- * @copyright Copyright © 2004-2005, Qiang Xue
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright © 2005 PradoSoft
+ * @license http://www.pradosoft.com/license/
* @version $Revision: $ $Date: $
* @package System.Web.UI.WebControls
*/
@@ -143,7 +143,7 @@ class TButton extends TWebControl implements IPostBackEventHandler */
protected function getPostBackOptions()
{
- $options=new TPostBackOptions($this);
+ $options=new TPostBackOptions();
$options->ClientSubmit=false;
$page=$this->getPage();
if($this->getCausesValidation() && $page->getValidators($this->getValidationGroup())->getCount()>0)
@@ -152,7 +152,7 @@ class TButton extends TWebControl implements IPostBackEventHandler $options->ValidationGroup=$this->getValidationGroup();
}
if($this->getPostBackUrl()!=='')
- $options->ActionUrl=$this->getPostBackUrl();
+ $options->ActionUrl=THttpUtility::quoteJavaScriptString($this->getPostBackUrl());
$options->ClientSubmit=!$this->getUseSubmitBehavior();
return $options;
}
@@ -276,7 +276,7 @@ class TButton extends TWebControl implements IPostBackEventHandler */
public function getOnClientClick()
{
- return $this->getViewState('ClientClick','');
+ return $this->getViewState('OnClientClick','');
}
/**
@@ -284,7 +284,7 @@ class TButton extends TWebControl implements IPostBackEventHandler */
public function setOnClientClick($value)
{
- $this->setViewState('ClientClick',$value,'');
+ $this->setViewState('OnClientClick',$value,'');
}
}
|