Improve date picker UI

- Set first day of week to Monday
- Enable year and month selectors

#590
This commit is contained in:
Artur Beljajev 2017-09-19 13:53:14 +03:00
parent 513a729673
commit 1ed10d2237
6 changed files with 24 additions and 11 deletions

View file

@ -21,10 +21,6 @@ $(document).on 'page:change', ->
tomorrow = new Date(today)
tomorrow.setDate(today.getDate() + 1)
$('.datepicker').datepicker(
dateFormat: "yy-mm-dd"
)
if $('.js-combobox').length
$('.js-combobox').select2
width: "100%"