Skip to content

Commit

Permalink
Merge pull request #128 from legalthings/monthonly-datepicker-hide-ye…
Browse files Browse the repository at this point in the history
…ar-title

Do not show year in title of day-month-only datepicker
  • Loading branch information
svenstm committed Dec 6, 2018
2 parents b05cee4 + 722e2ce commit 0ce5466
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/ractive-legalform.js
Expand Up @@ -448,7 +448,8 @@
var yearly = $inputGroup.find('input').attr('yearly');
$inputGroup.datetimepicker({
locale: ractive.getLocale('short'),
format: yearly ? 'DD-MM' : 'DD-MM-YYYY'
format: yearly ? 'DD-MM' : 'DD-MM-YYYY',
dayViewHeaderFormat: yearly ? 'MMMM' : 'MMMM YYYY'
});

$(e.target).closest('.input-group-addon').trigger('click');
Expand Down

0 comments on commit 0ce5466

Please sign in to comment.