diff --git a/admin/template/goto/element_set_global.tpl b/admin/template/goto/element_set_global.tpl index 7e3e64643..56218a5ae 100644 --- a/admin/template/goto/element_set_global.tpl +++ b/admin/template/goto/element_set_global.tpl @@ -4,7 +4,7 @@ {literal} {/literal} @@ -145,22 +145,22 @@ {'leave'|@translate} {'unset'|@translate} {'set to'|@translate} - + -- {section name=day start=1 loop=32} {$smarty.section.day.index} {/section} - + {html_options options=$month_list selected=$DATE_CREATION_MONTH} - - + diff --git a/admin/template/goto/element_set_unit.tpl b/admin/template/goto/element_set_unit.tpl index c2b38a00d..a5690885b 100644 --- a/admin/template/goto/element_set_unit.tpl +++ b/admin/template/goto/element_set_unit.tpl @@ -54,24 +54,24 @@ {'unset'|@translate} {'set to'|@translate} - + -- {section name=day start=1 loop=32} {$smarty.section.day.index} {/section} - + {html_options options=$month_list selected=$element.DATE_CREATION_MONTH} - - + diff --git a/admin/template/goto/history.tpl b/admin/template/goto/history.tpl index ffbf0994d..6e0804a6c 100644 --- a/admin/template/goto/history.tpl +++ b/admin/template/goto/history.tpl @@ -4,8 +4,8 @@ {literal} {/literal} @@ -19,33 +19,33 @@ {'search_date_from'|@translate} - + -- {section name=day start=1 loop=32} {$smarty.section.day.index} {/section} - + {html_options options=$month_list selected=$START_MONTH_SELECTED} - - + + {'search_date_to'|@translate} - + -- {section name=day start=1 loop=32} {$smarty.section.day.index} {/section} - + {html_options options=$month_list selected=$END_MONTH_SELECTED} - - + + diff --git a/admin/template/goto/include/datepicker.inc.tpl b/admin/template/goto/include/datepicker.inc.tpl index 2b3baa095..ef6829382 100644 --- a/admin/template/goto/include/datepicker.inc.tpl +++ b/admin/template/goto/include/datepicker.inc.tpl @@ -20,10 +20,21 @@ function pwg_get_fmt_datepicker(day, month, year) // initialize controls // day, month, year: selectors of visible date controls // linked_date: selector of hidden linked dates control +// checked_on_change: selector of control to change "checked" attribut // min_linked_date: selector of hidden linked date control witch give min value // max_linked_date: selector of hidden linked date control witch give max value -function pwg_initialization_datepicker(day, month, year, linked_date, min_linked_date, max_linked_date) +function pwg_initialization_datepicker(day, month, year, linked_date, checked_on_change, min_linked_date, max_linked_date) { + // Action on change date value + function pwg_on_date_change() + { + pwg_check_date(); + if (checked_on_change != null) + { + $(checked_on_change).attr("checked", "true"); + } + } + // Prevent selection of invalid dates through the select controls function pwg_check_date() { @@ -103,7 +114,7 @@ function pwg_initialization_datepicker(day, month, year, linked_date, min_linked $(month).val(array_date[1]); $(day).val(array_date[2]); } - pwg_check_date(); + pwg_on_date_change(); }, showOn: "both", {/literal} @@ -117,10 +128,11 @@ function pwg_initialization_datepicker(day, month, year, linked_date, min_linked jQuery(day + ", " + month + ", " + year).change( function () { - pwg_check_date(); + pwg_on_date_change(); }); // In order to desable element of list + // In order to init linked input pwg_check_date(); }); diff --git a/admin/template/goto/picture_modify.tpl b/admin/template/goto/picture_modify.tpl index ddf4e3fc4..a35f07436 100644 --- a/admin/template/goto/picture_modify.tpl +++ b/admin/template/goto/picture_modify.tpl @@ -5,7 +5,7 @@ {literal} {/literal} @@ -96,22 +96,22 @@ {'unset'|@translate} {'set to'|@translate} - + -- {section name=day start=1 loop=32} {$smarty.section.day.index} {/section} - + {html_options options=$month_list selected=$DATE_CREATION_MONTH_VALUE} - - +