zpaulovics/datetimepicker-rails

'changeDate' Javascript event not firing

Closed this issue · 1 comments

I can't seem to view the 'changeDate' event being called. Does this gem alter the event binding? I'm trying to get the date via Javascript to update other attributes on the page.

$('.datetimepicker').datetimepicker().on('changeDate', function(ev){ console.log(' date changed '+ ev.date); });

Realized its using the 'dp.change' event per the bootstrap documentation
$('.datetimepicker').datetimepicker().on('dp.change', function(ev){ console.log('date changed: '+ ev.date); });