mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
parent
bb071dc1d3
commit
696ea24f13
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
(function () {
|
||||
(function() {
|
||||
$.datepicker.setDefaults({
|
||||
changeMonth: true,
|
||||
changeYear: true,
|
||||
|
@ -8,12 +8,12 @@
|
|||
});
|
||||
|
||||
function attachDatePicker() {
|
||||
var dateFields = $('.js-datepicker');
|
||||
let dateFields = $('.js-datepicker');
|
||||
dateFields.datepicker();
|
||||
}
|
||||
|
||||
// For turbolinks
|
||||
document.addEventListener('page:change', function () {
|
||||
document.addEventListener('page:change', function() {
|
||||
attachDatePicker();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue