From 82ca525db8cd8008b3a4c4b7a3bea5a5951204ed Mon Sep 17 00:00:00 2001 From: Maks Nechesonov Date: Fri, 22 Dec 2017 14:17:11 +0200 Subject: [PATCH 1/3] Update select2.js.coffee - implemented compatibility with activeadmin 1.1.0+ and jQuery3 --- app/assets/javascripts/active_admin/select2/select2.js.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/active_admin/select2/select2.js.coffee b/app/assets/javascripts/active_admin/select2/select2.js.coffee index aebe977..e412171 100644 --- a/app/assets/javascripts/active_admin/select2/select2.js.coffee +++ b/app/assets/javascripts/active_admin/select2/select2.js.coffee @@ -15,3 +15,7 @@ $(document).on 'has_many_add:after', '.has_many_container', (e, fieldset) -> $(document).on 'ready page:load turbolinks:load', -> initSelect2($(".select2-input"), placeholder: "") return + +$(document).ready -> + initSelect2($(".select2-input"), placeholder: "") + return From f1a10a6c0cda6ba393ab600d019d12337d310815 Mon Sep 17 00:00:00 2001 From: Maks Nechesonov Date: Fri, 22 Dec 2017 14:17:37 +0200 Subject: [PATCH 2/3] Update README.md - adjusted README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4dbaaf1..40ba0d7 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Add `activeadmin`, `jquery-rails` and `select2-rails` to your Gemfile: And add `activeadmin-select2` to your Gemfile: ```ruby - gem 'activeadmin-select2', github: 'mfairburn/activeadmin-select2' + gem 'activeadmin-select2', github: 'NechiK/activeadmin-select2' ``` Add the activeadmin-select2 calls to the active_admin stylesheets and javascripts with: From 939bd3982fc09395e95545132fe9ad4d1146fd01 Mon Sep 17 00:00:00 2001 From: Maks Nechesonov Date: Fri, 22 Dec 2017 14:23:33 +0200 Subject: [PATCH 3/3] Update README.md - README rollback --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 40ba0d7..4dbaaf1 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Add `activeadmin`, `jquery-rails` and `select2-rails` to your Gemfile: And add `activeadmin-select2` to your Gemfile: ```ruby - gem 'activeadmin-select2', github: 'NechiK/activeadmin-select2' + gem 'activeadmin-select2', github: 'mfairburn/activeadmin-select2' ``` Add the activeadmin-select2 calls to the active_admin stylesheets and javascripts with: