From 0b60336c37f91d79ecaefbe0f8b86cc324264451 Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Thu, 10 May 2012 21:09:10 +0000 Subject: fix for #399, addresses ratings.js and inlineeditor.js --- framework/Web/UI/WebControls/TRatingList.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'framework/Web/UI/WebControls/TRatingList.php') diff --git a/framework/Web/UI/WebControls/TRatingList.php b/framework/Web/UI/WebControls/TRatingList.php index f939a210..457bcd74 100644 --- a/framework/Web/UI/WebControls/TRatingList.php +++ b/framework/Web/UI/WebControls/TRatingList.php @@ -283,7 +283,8 @@ class TRatingList extends TRadioButtonList parent::onPreRender($param); $this->publishStyle($this->getRatingStyle()); $this->_ratingImages = $this->publishImages($this->getRatingStyle()); - } + $this->registerClientScript(); + } /** * @param string rating style name @@ -312,6 +313,15 @@ class TRatingList extends TRadioButtonList return $files; } + /** + * Registers the relevant JavaScript. + */ + protected function registerClientScript() + { + $cs=$this->getPage()->getClientScript(); + $cs->registerPradoScript('ratings'); + } + /** * @param string asset file in the self::SCRIPT_PATH directory. * @return string asset file url. -- cgit v1.2.3