mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
fix type error at changing task at navigation bar after seting due date
This commit is contained in:
parent
e8f6dc0d24
commit
553039b7b4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue