diff options
author | ctrlaltca <> | 2012-05-10 21:09:10 +0000 |
---|---|---|
committer | ctrlaltca <> | 2012-05-10 21:09:10 +0000 |
commit | 0b60336c37f91d79ecaefbe0f8b86cc324264451 (patch) | |
tree | f780d8a1fd6d9df7f3bb6676062645b4d0e06a37 /framework/Web/UI/WebControls/TRatingList.php | |
parent | afaebc9ce82a6cec8cff83da781c44411838df9c (diff) |
fix for #399, addresses ratings.js and inlineeditor.js
Diffstat (limited to 'framework/Web/UI/WebControls/TRatingList.php')
-rw-r--r-- | framework/Web/UI/WebControls/TRatingList.php | 12 |
1 files changed, 11 insertions, 1 deletions
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
@@ -313,6 +314,15 @@ class TRatingList extends TRadioButtonList }
/**
+ * 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.
*/
|