From e583d7984a570ba553a3ebf65401dfce44ee261f Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 9 Mar 2006 13:02:31 +0000 Subject: Fixed #85. --- framework/Web/UI/WebControls/TDataGrid.php | 2 +- framework/Web/UI/WebControls/TRatingList.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'framework/Web/UI/WebControls') 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"; -- cgit v1.2.3