zpaulovics / datetimepicker-rails

A date and time picker for Twitter Bootstrap in Rails using Simple Form
MIT License
174 stars 80 forks source link

inline: true makes locale: moment.locale(navigator.language) stop working #68

Closed Rovel closed 4 years ago

Rovel commented 8 years ago

It's a weird behavior, but I concluded some options breaks others, is this something I'm missing? I'm using simple form. and the inline doesn't hide the input but put the widged in a way fit in mobile... captura de tela 2015-11-26 as 08 49 30

picker.js

$(document).on('ready page:change', function() { $('.datetimepicker').datetimepicker({ showTodayButton: true, toolbarPlacement: 'top', showClear: true, inline: true, sideBySide: true, locale: moment.locale(navigator.language) // put here your custom picker options, that should be applied for all pickers

});