Skip to content

Commit f35b036

Browse files
committed
turbolink compatability
2 parents 9528463 + b4540f6 commit f35b036

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
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

lib/activeadmin/select2/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module ActiveAdmin
22
module Select2
3-
VERSION = "0.1.7"
3+
VERSION = "0.1.8"
44
end
55
end

0 commit comments

Comments
 (0)