mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-20 01:00:13 +01:00
fix #1115. The datapicker is now passed the current locale to localize the datepicker
This commit is contained in:
parent
a3837cc4e3
commit
da93b82b2b
5 changed files with 62 additions and 1 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue