diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2014-01-10 19:27:47 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2014-01-10 19:27:47 +0100 |
commit | 97869b581fc2af1724dbf07652533f7d2ded9371 (patch) | |
tree | eabc2b7602a1603cc1fdfbe202128c04ee2f8b43 /framework/Web/UI/WebControls/TRadioButtonList.php | |
parent | 12a60b062acb73bf000cbb4b03e8b45aaaf185bc (diff) |
Optimization: avoid duplicate creation of T*CheckBoxList, T*RadioButtonList js items
Diffstat (limited to 'framework/Web/UI/WebControls/TRadioButtonList.php')
-rw-r--r-- | framework/Web/UI/WebControls/TRadioButtonList.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TRadioButtonList.php b/framework/Web/UI/WebControls/TRadioButtonList.php index bead3582..3afe3ec2 100644 --- a/framework/Web/UI/WebControls/TRadioButtonList.php +++ b/framework/Web/UI/WebControls/TRadioButtonList.php @@ -47,7 +47,7 @@ class TRadioButtonList extends TCheckBoxList */ protected function createRepeatedControl() { - return new TRadioButton; + return new TRadioButtonItem; } /** @@ -97,3 +97,11 @@ class TRadioButtonList extends TCheckBoxList } } +class TRadioButtonItem extends TRadioButton { + /** + * Override client implementation to avoid emitting the javascript + */ + protected function renderClientControlScript($writer) + { + } +} |