summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authorwei <>2006-01-19 05:10:02 +0000
committerwei <>2006-01-19 05:10:02 +0000
commitc097a2128a3cfc37ef91f7cd09e6b069f305333d (patch)
treedb4aa45807b7092ce8e4dcd7af9703e256ba3fe6 /framework/Web/UI
parent5d88ad05e5956071d5904662d133625f157ce230 (diff)
Fixed TLinkButton.
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/WebControls/TLinkButton.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TLinkButton.php b/framework/Web/UI/WebControls/TLinkButton.php
index 01441d99..b8d1ccaa 100644
--- a/framework/Web/UI/WebControls/TLinkButton.php
+++ b/framework/Web/UI/WebControls/TLinkButton.php
@@ -86,7 +86,7 @@ class TLinkButton extends TWebControl implements IPostBackEventHandler
{
$url = $this->getPostBackUrl();
//create unique no-op url references
- $nop = "javascript:;//".$this->getClientID();
+ $nop = "#".$this->getClientID();
$writer->addAttribute('href', $url ? $url : $nop);
$this->getPage()->getClientScript()->registerPostBackControl($this);
}
@@ -105,6 +105,7 @@ class TLinkButton extends TWebControl implements IPostBackEventHandler
$options['CausesValidation'] = $this->getCausesValidation();
$options['ValidationGroup'] = $this->getValidationGroup();
$options['PostBackUrl'] = $this->getPostBackUrl();
+ $options['StopEvent'] = true;
return $options;
}