activeadmin-plugins / active_admin_datetimepicker

:calendar: active_admin_datetimepicker gem
MIT License
72 stars 48 forks source link

Fix for AA 1.1.0 added. #36

Closed KrlSbin closed 6 years ago

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-4.8%) to 90.476% when pulling ddd576704aa252857d44c30e45be8040fe581295 on NoPos:support_active_admin_1.1.0 into 5721ea4eed4df2a214461831a2ccff159e9f0e1d on activeadmin-plugins:master.

workgena commented 6 years ago

@NoPos looks like document-ready function is broken. Try to replace it

in file "active_admin_datetimepicker.js.coffee" replace all from line 17 "$(document).on 'ready turbolinks:load', ->" to

@initXdanDateTimePickerPlugin = () ->
  setupDateTimePicker $('body')
  $(document).on 'has_many_add:after', '.has_many_container', (e, fieldset) ->
    setupDateTimePicker fieldset

$(document).ready ->
  initXdanDateTimePickerPlugin()

$(document).on 'turbolinks:load', ->
  initXdanDateTimePickerPlugin()
coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 95.238% when pulling ecb9446d385a88f8f01707c8e3106b4f2efddaf1 on NoPos:support_active_admin_1.1.0 into 5721ea4eed4df2a214461831a2ccff159e9f0e1d on activeadmin-plugins:master.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 95.238% when pulling 612b11d1ede5333621e3ab776dd01c24bd33e742 on NoPos:support_active_admin_1.1.0 into 5721ea4eed4df2a214461831a2ccff159e9f0e1d on activeadmin-plugins:master.