summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TButton.php
diff options
context:
space:
mode:
authorxue <>2006-01-09 01:56:12 +0000
committerxue <>2006-01-09 01:56:12 +0000
commit47be9e10cfa0aae464a8e9789db9b438378a6099 (patch)
treebaa5f153dccecb784455fe633d7e53115478d9e7 /framework/Web/UI/WebControls/TButton.php
parenta02e83d8971568617a1723a2bd2b60b79c78faa8 (diff)
Diffstat (limited to 'framework/Web/UI/WebControls/TButton.php')
-rw-r--r--framework/Web/UI/WebControls/TButton.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/TButton.php b/framework/Web/UI/WebControls/TButton.php
index 735c3b50..7109bca4 100644
--- a/framework/Web/UI/WebControls/TButton.php
+++ b/framework/Web/UI/WebControls/TButton.php
@@ -83,6 +83,8 @@ class TButton extends TWebControl implements IPostBackEventHandler
}
else if($this->getEnabled()) // in this case, parent will not render 'disabled'
$writer->addAttribute('disabled','disabled');
+
+ $writer->addAttribute('id',$this->getClientID());
parent::addAttributesToRender($writer);
}