diff options
author | xue <> | 2006-02-18 07:24:51 +0000 |
---|---|---|
committer | xue <> | 2006-02-18 07:24:51 +0000 |
commit | 145c4aef09e278d29bfd8e9858e114ca097e5901 (patch) | |
tree | f125683e12badb170f9b5c435a811fd4f8eb3942 /framework/Web/UI/WebControls/TRatingList.php | |
parent | 64a5d4b6d3adaeab325d0e72d6c6c7624d861807 (diff) |
client script reorganization.
Diffstat (limited to 'framework/Web/UI/WebControls/TRatingList.php')
-rw-r--r-- | framework/Web/UI/WebControls/TRatingList.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/framework/Web/UI/WebControls/TRatingList.php b/framework/Web/UI/WebControls/TRatingList.php index 4302c3b3..006391f7 100644 --- a/framework/Web/UI/WebControls/TRatingList.php +++ b/framework/Web/UI/WebControls/TRatingList.php @@ -106,9 +106,8 @@ class TRatingList extends TRadioButtonList $this->publishRatingListAssets();
$id = $this->getClientID();
$scripts = $this->getPage()->getClientScript();
- $scripts->registerClientScript('prado');
- $serializer = new TJavascriptSerializer($this->getRatingClientOptions());
- $options = $serializer->toJavascript();
+ $scripts->registerPradoScript('prado');
+ $options = TJavaScript::encode($this->getRatingClientOptions());
$code = "new Prado.WebUI.TRatingList($options);";
$scripts->registerEndScript("prado:$id", $code);
}
|