I m pretty sure it s been fixed since i had exactly the same problem however i took the latest version from the svn wich is not the latest build on their website and i guess the symfony update command.
On Mar 22, 4:22 pm, Raphaël B. <zera...@gmail.com> wrote: > just update the plugin (php symfony plugin:upgrade sfFormExtraPlugin) > and still has the same problem... > > On 22 mar, 15:33, xplo <xplo...@gmail.com> wrote: > > > > > Get the latest version of the plugin, it s been fixed ~ > > > On Mar 22, 2:57 pm, Raphaël B. <zera...@gmail.com> wrote: > > > > Hello, > > > > I'm using this widget in a symfony form like this: > > > > $dateWidget = new sfWidgetFormDate(array( > > > 'format' => '%day%/%month%/%year%', > > > 'years' => $years_list > > > )); > > > > $this->widgetSchema['date_naissance'] = new > > > sfWidgetFormJqueryDate(array( > > > 'date_widget' => $dateWidget > > > )); > > > > But when I select the 8th or 9th of a month the day <select> is not > > > filled with the value 08 or 09. > > > > Here the output generated by this widget: > > > > / > > > *************************************************************************** > > > ***********************************************/ > > > <select name="info_candidat[date_naissance][day]" > > > id="info_candidat_date_naissance_day"> > > > > <option value="" selected="selected"></option> > > > <option value="1">01</option> > > > <option value="2">02</option> > > > <option value="3">03</option> > > > <option value="4">04</option> > > > <option value="5">05</option> > > > <option value="6">06</option> > > > <option value="7">07</option> > > > <option value="8">08</option> > > > > <option value="9">09</option> > > > <option value="10">10</option> > > > <option value="11">11</option> > > > <option value="12">12</option> > > > <option value="13">13</option> > > > <option value="14">14</option> > > > <option value="15">15</option> > > > <option value="16">16</option> > > > <option value="17">17</option> > > > > <option value="18">18</option> > > > <option value="19">19</option> > > > <option value="20">20</option> > > > <option value="21">21</option> > > > <option value="22">22</option> > > > <option value="23">23</option> > > > <option value="24">24</option> > > > <option value="25">25</option> > > > <option value="26">26</option> > > > > <option value="27">27</option> > > > <option value="28">28</option> > > > <option value="29">29</option> > > > <option value="30">30</option> > > > <option value="31">31</option> > > > </select>/<select name="info_candidat[date_naissance][month]" > > > id="info_candidat_date_naissance_month"> > > > <option value="" selected="selected"></option> > > > <option value="1">01</option> > > > <option value="2">02</option> > > > > <option value="3">03</option> > > > <option value="4">04</option> > > > <option value="5">05</option> > > > <option value="6">06</option> > > > <option value="7">07</option> > > > <option value="8">08</option> > > > <option value="9">09</option> > > > <option value="10">10</option> > > > <option value="11">11</option> > > > > <option value="12">12</option> > > > </select>/<select name="info_candidat[date_naissance][year]" > > > id="info_candidat_date_naissance_year"> > > > <option value="" selected="selected"></option> > > > <option value="2000">2000</option> > > > <option value="2001">2001</option> > > > <option value="2002">2002</option> > > > <option value="2003">2003</option> > > > <option value="2004">2004</option> > > > <option value="2005">2005</option> > > > > </select><input type="hidden" size="10" > > > id="info_candidat_date_naissance_jquery_control" disabled="disabled" > > > /><script type="text/javascript"> > > > > function wfd_info_candidat_date_naissance_read_linked() > > > { > > > > jQuery("#info_candidat_date_naissance_jquery_control").val(jQuery("#info_ca > > > ndidat_date_naissance_year").val() > > > + "-" + jQuery("#info_candidat_date_naissance_month").val() + "-" + > > > jQuery("#info_candidat_date_naissance_day").val()); > > > > return {}; > > > } > > > > function wfd_info_candidat_date_naissance_update_linked(date) > > > { > > > > jQuery("#info_candidat_date_naissance_year").val(parseInt(date.substring(0, > > > 4))); > > > > jQuery("#info_candidat_date_naissance_month").val(parseInt(date.substring(5 > > > , > > > 7))); > > > > jQuery("#info_candidat_date_naissance_day").val(parseInt(date.substring(8)) > > > ); > > > } > > > > function wfd_info_candidat_date_naissance_check_linked_days() > > > { > > > var daysInMonth = 32 - new > > > Date(jQuery("#info_candidat_date_naissance_year").val(), > > > jQuery("#info_candidat_date_naissance_month").val() - 1, > > > 32).getDate(); > > > jQuery("#info_candidat_date_naissance_day > > > option").attr("disabled", ""); > > > jQuery("#info_candidat_date_naissance_day option:gt(" + > > > (daysInMonth - 1) +")").attr("disabled", "disabled"); > > > > if (jQuery("#info_candidat_date_naissance_day").val() > > > > daysInMonth) > > > { > > > jQuery("#info_candidat_date_naissance_day").val(daysInMonth); > > > } > > > } > > > > jQuery(document).ready(function() { > > > > jQuery("#info_candidat_date_naissance_jquery_control").datepicker(jQuery.ex > > > tend({}, > > > { > > > minDate: new Date(2000, 1 - 1, 1), > > > maxDate: new Date(2005, 12 - 1, 31), > > > beforeShow: wfd_info_candidat_date_naissance_read_linked, > > > onSelect: wfd_info_candidat_date_naissance_update_linked, > > > showOn: "button" > > > > }, jQuery.datepicker.regional[""], {}, {dateFormat: "yy-mm-dd"})); > > > }); > > > > jQuery("#info_candidat_date_naissance_day, > > > #info_candidat_date_naissance_month, > > > #info_candidat_date_naissance_year").change(wfd_info_candidat_date_naissanc > > > e_check_linked_days); > > > </script> > > > / > > > *************************************************************************** > > > ***********************************************/ -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.