nested_form_fields icon indicating copy to clipboard operation
nested_form_fields copied to clipboard

Remove dependency on jQuery

Open piedoom opened this issue 8 years ago • 3 comments

As of Rails 5.1, jQuery is no longer needed and Rails UJS is available without any dependencies. It would be great to drop the jQuery dependency and just use plain JS.

piedoom avatar Jul 16 '17 03:07 piedoom

Yeah, I would like that too. Pull requests welcome. :)

ncri avatar Aug 20 '17 19:08 ncri

Getting below error, can i get a quick solution for this $.rails.allowAction is not a function

I am using rails-ujs instead of jquery_ujs

srikanthcx avatar Feb 03 '19 11:02 srikanthcx

@srikanthcx A quick hack would be to define $.rails.allowAction somewhere and make it return true. It was added in this commit to support confirm dialogues when removing nested fields: https://github.com/ncri/nested_form_fields/commit/3764936543e5601422dab97a81a8e616507848d0

ncri avatar Mar 03 '19 20:03 ncri