diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2013-09-30 17:36:51 +0200 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2013-09-30 17:36:51 +0200 |
commit | 064053a81f4ce4e9cef5e8984dadfe7cca049fb9 (patch) | |
tree | bc3f21355f56918932569e33d3dfcc665d7b9cf2 /framework/Web/UI/ActiveControls/TActiveRatingList.php | |
parent | 4ef09ccaf27e31ac5112b2846c253a2877f8a520 (diff) |
Fix use of TCallbackOptions with TActiveCheckBoxList, TActiveRadioButtonList, TActiveRatingList
Diffstat (limited to 'framework/Web/UI/ActiveControls/TActiveRatingList.php')
-rw-r--r-- | framework/Web/UI/ActiveControls/TActiveRatingList.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveRatingList.php b/framework/Web/UI/ActiveControls/TActiveRatingList.php index 973dc1e5..022efe65 100644 --- a/framework/Web/UI/ActiveControls/TActiveRatingList.php +++ b/framework/Web/UI/ActiveControls/TActiveRatingList.php @@ -121,6 +121,17 @@ class TActiveRatingList extends TRatingList implements IActiveControl, ICallback } /** + * Ensure that the ID attribute is rendered and registers the javascript code + * for initializing the active control. + */ + protected function addAttributesToRender($writer) + { + parent::addAttributesToRender($writer); + $this->getActiveControl()->registerCallbackClientScript( + $this->getClientClassName(), $this->getPostBackOptions()); + } + + /** * Gets the name of the javascript class responsible for performing postback for this control. * This method overrides the parent implementation. * @return string the javascript class name |