Skip to content

Commit c1037c2

Browse files
author
colorfulfool
committed
Make �the gem compatible with Turbolinks and Turbolinks Classic
1 parent 9528463 commit c1037c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/assets/javascripts/active_admin/select2/select2.js.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ initSelect2 = (inputs, extra = {}) ->
1212
$(document).on 'has_many_add:after', '.has_many_container', (e, fieldset) ->
1313
initSelect2(fieldset.find('.select2-input'))
1414

15-
$(document).ready ->
15+
$(document).on 'ready page:load turbolinks:load', ->
1616
initSelect2($(".select2-input"), placeholder: "")
1717
return

0 commit comments

Comments
 (0)