Ignore:
Timestamp:
Oct 7, 2008, 9:18:55 PM (16 years ago)
Author:
rub
Message:

jQuery Datepicker:

o use id for selector
o check radio button on change date

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/template/goto/history.tpl

    r2632 r2680  
    55{literal}
    66<script type="text/javascript">
    7   pwg_initialization_datepicker("select[name=start_day]", "select[name=start_month]", "input[name=start_year]", "input[name=start_linked_date]", null, "input[name=end_linked_date]");
    8   pwg_initialization_datepicker("select[name=end_day]", "select[name=end_month]", "input[name=end_year]", "input[name=end_linked_date]", "input[name=start_linked_date]", null);
     7  pwg_initialization_datepicker("#start_day", "#start_month", "#start_year", "#start_linked_date", null, null, "#end_linked_date");
     8  pwg_initialization_datepicker("#end_day", "#end_month", "#end_year", "#end_linked_date", null, "#start_linked_date", null);
    99</script>
    1010{/literal}
     
    2020    <li><label>{'search_date_from'|@translate}</label></li>
    2121    <li>
    22       <select name="start_day">
     22      <select id="start_day" name="start_day">
    2323        <option value="0">--</option>
    2424        {section name=day start=1 loop=32}
     
    2626        {/section}
    2727      </select>
    28       <select name="start_month">
     28      <select id="start_month" name="start_month">
    2929      {html_options options=$month_list selected=$START_MONTH_SELECTED}
    3030      </select>
    31       <input name="start_year" value="{$START_YEAR}" type="text" size="4" maxlength="4" >
    32       <input name="start_linked_date" type="hidden" size="10" disabled="disabled"/>
     31      <input id="start_year" name="start_year" value="{$START_YEAR}" type="text" size="4" maxlength="4" >
     32      <input id="start_linked_date" name="start_linked_date" type="hidden" size="10" disabled="disabled"/>
    3333    </li>
    3434  </ul>
     
    3636    <li><label>{'search_date_to'|@translate}</label></li>
    3737    <li>
    38       <select name="end_day">
     38      <select id="end_day" name="end_day">
    3939        <option value="0">--</option>
    4040        {section name=day start=1 loop=32}
     
    4242        {/section}
    4343      </select>
    44       <select name="end_month">
     44      <select id="end_month" name="end_month">
    4545      {html_options options=$month_list selected=$END_MONTH_SELECTED}
    4646      </select>
    47       <input name="end_year" value="{$END_YEAR}" type="text" size="4" maxlength="4" >
    48       <input name="end_linked_date" type="hidden" size="10" disabled="disabled"/>
     47      <input id="end_year" name="end_year" value="{$END_YEAR}" type="text" size="4" maxlength="4" >
     48      <input id="end_linked_date" name="end_linked_date" type="hidden" size="10" disabled="disabled"/>
    4949    </li>
    5050  </ul>
Note: See TracChangeset for help on using the changeset viewer.