yiisoft/yii — pull request #1239 by christiansalazar (2012-08-15 20:58:04+00:00)
Title: Enh #1238: CJuiDatePicker.onSelect event handler. (christiansalazar)

adding an onSelect event handler for directly usage on CJuiDatepicker.
this change is considering the 'flat' modality and the JS declarative modality (with or without js: keyword). When needed (as original code does) the hiddenField value is called and updated correctly.

as an example usage:

$this->widget('zii.widgets.jui.CJuiDatePicker', array(
// inline mode:
'onSelect'=>"js:function(dateSelected){ ..do_something.. }",
// or simply referenced by js function name:
'onSelect'=>"myHandler",
));