summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-01-10 18:57:58 +0100
committerFabio Bas <ctrlaltca@gmail.com>2014-01-10 18:57:58 +0100
commit12a60b062acb73bf000cbb4b03e8b45aaaf185bc (patch)
tree850e4b8e2bbf0e8933a2624422586f6849f262f7
parent6efebec0f97a6126660901cfd639590a73ac04ff (diff)
Fix TActiveCheckBoxList, TActiveRadioButtonList
-rw-r--r--framework/Web/Javascripts/source/prado/activecontrols/activecontrols3.js9
-rw-r--r--framework/Web/UI/ActiveControls/TActiveCheckBoxList.php9
-rw-r--r--framework/Web/UI/ActiveControls/TActiveRadioButtonList.php11
-rw-r--r--jQuery-WIP.txt10
4 files changed, 28 insertions, 11 deletions
diff --git a/framework/Web/Javascripts/source/prado/activecontrols/activecontrols3.js b/framework/Web/Javascripts/source/prado/activecontrols/activecontrols3.js
index b471a300..3e8ec309 100644
--- a/framework/Web/Javascripts/source/prado/activecontrols/activecontrols3.js
+++ b/framework/Web/Javascripts/source/prado/activecontrols/activecontrols3.js
@@ -52,16 +52,15 @@ Prado.WebUI.TActiveRadioButton = jQuery.klass(Prado.WebUI.TActiveCheckBox);
Prado.WebUI.TActiveCheckBoxList = jQuery.extend(
{
- constructor : function(options)
+ onInit : function(options)
{
- Prado.Registry[options.ListID] = this;
for(var i = 0; i<options.ItemCount; i++)
{
- var checkBoxOptions = jQuery.extend(
+ var checkBoxOptions = jQuery.extend({}, options,
{
- ID : options.ListID+"_c"+i,
+ ID : options.ID+"_c"+i,
EventTarget : options.ListName+"$c"+i
- }, options);
+ });
new Prado.WebUI.TActiveCheckBox(checkBoxOptions);
}
}
diff --git a/framework/Web/UI/ActiveControls/TActiveCheckBoxList.php b/framework/Web/UI/ActiveControls/TActiveCheckBoxList.php
index aa2d5f94..9d42862e 100644
--- a/framework/Web/UI/ActiveControls/TActiveCheckBoxList.php
+++ b/framework/Web/UI/ActiveControls/TActiveCheckBoxList.php
@@ -115,5 +115,14 @@ class TActiveCheckBoxList extends TCheckBoxList implements IActiveControl, ICall
$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
+ */
+ protected function getClientClassName()
+ {
+ return 'Prado.WebUI.TActiveCheckBoxList';
+ }
}
diff --git a/framework/Web/UI/ActiveControls/TActiveRadioButtonList.php b/framework/Web/UI/ActiveControls/TActiveRadioButtonList.php
index 5c76aed1..17e0b431 100644
--- a/framework/Web/UI/ActiveControls/TActiveRadioButtonList.php
+++ b/framework/Web/UI/ActiveControls/TActiveRadioButtonList.php
@@ -115,5 +115,16 @@ class TActiveRadioButtonList extends TRadioButtonList implements IActiveControl,
$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
+ */
+ protected function getClientClassName()
+ {
+ return 'Prado.WebUI.TActiveRadioButtonList';
+ }
+
}
diff --git a/jQuery-WIP.txt b/jQuery-WIP.txt
index 12f98f94..f8a6a369 100644
--- a/jQuery-WIP.txt
+++ b/jQuery-WIP.txt
@@ -9,15 +9,15 @@ Targets:
* port Effects (done)
* port basic active controls (done)
* create substitutes for exotic standard controls (date picker, accordion, colorpicker, slider, ..) (done)
- * port exotic active controls (autocomplete, ...) (wip, using jquery-ui)
- * get tests running (started, wip)
+ * port exotic active controls (done)
+ * get tests running (wip)
* ensure jQuery's compatibility mode with prototype (support old third party components from users? (done)
* fix debug components (TJavascriptLogger) (done, but maybe dropping it is a good idea)
* implement some Jui components (deprecate old scriptculous, create substituted based on jquery-ui) (wip)
- * port demos
+ * port demos using javascript
+ * add demos for new controls
* document everything
-
DONE
Basic postback controls (TButton, TCheckBox, TLinkButton, TRadioButton, TTextBox, ..)
Js-based controls (TTabPanel, TDatePicker, TColorPicker, TSlider, THtmlArea, TAccordion, TRatingList)
@@ -30,8 +30,6 @@ Basic jquery-ui controls
WIP
TJuiAutoComplete
TJuiDraggable,TJuiDroppable
-
-TBD
Add JQuery-ui-Effects: clip, explode, transfer, switchclass
Add JQuery-ui-Methods: show, hide, toggle?
Add JQuery-ui-controls