fix type error at changing task at navigation bar after seting due date

This commit is contained in:
mlorb 2018-01-30 13:29:54 +01:00
parent e8f6dc0d24
commit 553039b7b4

View file

@ -50,7 +50,7 @@ module BootstrapFormHelper
if options[:clear] then
res << "<span class='input-group-addon' id='#{id}_clear'><span class='glyphicon glyphicon-remove'></span></span></div>"
end
res << "</div></div></div></div><script type='text/javascript'>$(function () { var dt = $('##{id}'); dt.datetimepicker({ #{jsOpts}ignoreReadonly: true, locale: '#{js_locale}', format: '#{js_format}' }); if (dt.data['ts'] != '') { $('##{id}').data('DateTimePicker').date(moment($('##{id}').data('ts'))); }"
res << "</div></div></div></div><script type='text/javascript'>$(function () { var dt = $('##{id}'); dt.datetimepicker({ #{jsOpts}ignoreReadonly: true, locale: '#{js_locale}', format: '#{js_format}' }); if (dt.length > 0 && dt.data['ts'] != '') { $('##{id}').data('DateTimePicker').date(moment($('##{id}').data('ts'))); }"
if options[:clear] then
res << "$('##{id}_clear').click(function() { $('##{id}').data('DateTimePicker').clear(); });"
end