fix #1115. The datapicker is now passed the current locale to localize the datepicker

This commit is contained in:
Reinier Balt 2011-02-25 17:10:33 +01:00
parent a3837cc4e3
commit da93b82b2b
5 changed files with 62 additions and 1 deletions

View file

@ -973,6 +973,12 @@ function enable_rich_interaction(){
$('input.Date').datepicker({
'dateFormat': dateFormat,
'firstDay': weekStart,
'showButtonPanel': true,
'showWeek': true,
'changeMonth': true,
'changeYear': true,
'maxDate': '+5y',
'minDate': '-1y',
'showAnim': 'fold'
});
@ -1178,6 +1184,8 @@ $(document).ready(function() {
TodoItemsContainer.setup_container_toggles();
$.datepicker.setDefaults($.datepicker.regional[i18n_locale]);
/* enable page specific behavior */
$([ 'IntegrationsPage', 'NotesPage', 'ProjectListPage', 'ContextListPage',
'FeedsPage', 'RecurringTodosPage', 'TodoItems', 'TracksPages',