summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TButton.php
diff options
context:
space:
mode:
authorxue <>2006-01-09 21:37:12 +0000
committerxue <>2006-01-09 21:37:12 +0000
commitdfde83887227d19b3b413f19e2693fd790d661e1 (patch)
tree7fa65a6537f7f504b004fe7dae76c3e8a7364cc5 /framework/Web/UI/WebControls/TButton.php
parent22b9af8b9858fca190efc8e0e5ff1053d7a86c41 (diff)
Diffstat (limited to 'framework/Web/UI/WebControls/TButton.php')
-rw-r--r--framework/Web/UI/WebControls/TButton.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TButton.php b/framework/Web/UI/WebControls/TButton.php
index e03bc676..0b4f3e37 100644
--- a/framework/Web/UI/WebControls/TButton.php
+++ b/framework/Web/UI/WebControls/TButton.php
@@ -75,13 +75,15 @@ class TButton extends TWebControl implements IPostBackEventHandler
$writer->addAttribute('name',$uniqueID);
$writer->addAttribute('value',$this->getText());
if($this->getEnabled(true))
- {
+ {
$scripts = $this->getPage()->getClientScript();
if($scripts->isEndScriptRegistered("TBaseValidator"))
{
$group = $this->getValidationGroup();
$group = strlen($group) ? ",'".$group."'" : '';
- $script = "Prado.Validation.AddTarget('{$uniqueID}'{$group});";
+ $clientID=$this->getClientID();
+ //$script = "Prado.Validation.AddTarget('{$uniqueID}'{$group});";
+ $script = "Prado.Validation.AddTarget('{$clientID}'{$group});";
$scripts->registerEndScript("{$uniqueID}:target", $script);
}
}