summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2006-03-09 13:02:31 +0000
committerxue <>2006-03-09 13:02:31 +0000
commite583d7984a570ba553a3ebf65401dfce44ee261f (patch)
tree16ca0e5d7ad8b11b4a564d42a0cbe65df89aa73f
parentf1cf062710ae5fba098b2775949a083f7457e82b (diff)
Fixed #85.
-rw-r--r--framework/Web/UI/WebControls/TDataGrid.php2
-rw-r--r--framework/Web/UI/WebControls/TRatingList.php1
2 files changed, 1 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TDataGrid.php b/framework/Web/UI/WebControls/TDataGrid.php
index b70e84fc..5b4d22ac 100644
--- a/framework/Web/UI/WebControls/TDataGrid.php
+++ b/framework/Web/UI/WebControls/TDataGrid.php
@@ -627,7 +627,7 @@ class TDataGrid extends TBaseDataList implements INamingContainer
$command=$param->getCommandName();
if(strcasecmp($command,'select')===0)
{
- $this->setSelectedIndex($param->getItem()->getItemIndex());
+ $this->setSelectedItemIndex($param->getItem()->getItemIndex());
$this->onSelectedIndexChanged(null);
return true;
}
diff --git a/framework/Web/UI/WebControls/TRatingList.php b/framework/Web/UI/WebControls/TRatingList.php
index 6397660f..6f382d31 100644
--- a/framework/Web/UI/WebControls/TRatingList.php
+++ b/framework/Web/UI/WebControls/TRatingList.php
@@ -129,7 +129,6 @@ class TRatingList extends TRadioButtonList
protected function publishRatingListImages($style, $fileExt='.gif')
{
- $cs = $this->getPage()->getClientScript();
$images['blank'] = "System.Web.Javascripts.ratings.{$style}_blank";
$images['hover'] = "System.Web.Javascripts.ratings.{$style}_hover";
$images['selected'] = "System.Web.Javascripts.ratings.{$style}_selected";