From c6b4190fab88201f4efaa0d00a6aa823b180f482 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 10 Jun 2006 11:28:30 +0000 Subject: Merge from 3.0 branch till 1148. --- framework/Web/UI/WebControls/TLinkButton.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'framework/Web/UI/WebControls/TLinkButton.php') diff --git a/framework/Web/UI/WebControls/TLinkButton.php b/framework/Web/UI/WebControls/TLinkButton.php index 7f9baab8..7487b37a 100644 --- a/framework/Web/UI/WebControls/TLinkButton.php +++ b/framework/Web/UI/WebControls/TLinkButton.php @@ -85,18 +85,18 @@ class TLinkButton extends TWebControl implements IPostBackEventHandler, IButtonC else if($this->getEnabled()) // in this case, parent will not render 'disabled' $writer->addAttribute('disabled','disabled'); } - + /** * Renders the client-script code. */ protected function renderClientControlScript($writer) { //create unique no-op url references - $nop = "#".$this->getClientID(); + $nop = "javascript:;//".$this->getClientID(); $writer->addAttribute('href', $nop); - $cs = $this->getPage()->getClientScript(); + $cs = $this->getPage()->getClientScript(); $cs->registerPostBackControl(get_class($this),$this->getPostBackOptions()); - } + } /** * Returns postback specifications for the button. @@ -252,4 +252,4 @@ class TLinkButton extends TWebControl implements IPostBackEventHandler, IButtonC } } -?> \ No newline at end of file +?> -- cgit v1.2.3