effective_bootstrap 1.26.0 → 1.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3dd9a4357bc0f8fab5f5fe15dde1a0613a7601e7cf168050f3e663f3aaf6a401
4
- data.tar.gz: 257ab417f92c6315cb67e3daa4492d044691984ade2e4e13138eba01b062685c
3
+ metadata.gz: ceb3bba806853497fb5290b90df0d1ad27710099de47f927b99b0037f6ce13ce
4
+ data.tar.gz: 8ac20f1907bdb52800c6330df1f36a51b36303bf05829c2a8f89b4a74d4c6002
5
5
  SHA512:
6
- metadata.gz: 4fe20521233794d095bf9c4db33471c7e3656a805831b929d8bf44669b33b05aadaadf800e7911282fd67ec5e318e1323e1ed733c971aa2faf3845642145260c
7
- data.tar.gz: db80dd2bcb4239a6bbb612b05c18ad460a6acb5b96b40775ec206312074ba078607cbb983863aa788c796e38c3ef0aca284f24827a19c239454a01ec1261ece2
6
+ metadata.gz: a9bd10a1395c70a946df7cc8367190c7b21a4fd6f6ba65030384a1810c6479922aa7c5194d9c59e90eef5c33005b1f4d8f4544c9f068d53eea40580a539eda05
7
+ data.tar.gz: 2185a0c41f8063f37223ff1b10cc785da1d69656c400bf5fa14d424774b355a7643533987ed458a09bf9893f34ca971b474f2c249462e4c40c50e9bfdbc27c47
@@ -0,0 +1,17 @@
1
+ // Bootstrap's data-ride initializer only runs on a full window load.
2
+ $(document).on('turbolinks:load turbo:load', function() {
3
+ $('[data-ride="carousel"]').carousel();
4
+ });
5
+
6
+ $(document).on('turbolinks:before-cache turbo:before-cache', function() {
7
+ $('.carousel').each(function() {
8
+ var $carousel = $(this);
9
+ if (!$carousel.data('bs.carousel')) return;
10
+
11
+ $carousel.carousel('pause');
12
+ // Finish an in-progress slide before Turbo clones its transition classes.
13
+ if ($carousel.find('.carousel-item-next, .carousel-item-prev').length) {
14
+ $carousel.find('.carousel-item.active').trigger('transitionend');
15
+ }
16
+ });
17
+ });
@@ -1,4 +1,5 @@
1
1
  //= require ./effective_bootstrap/base
2
+ //= require ./effective_bootstrap/carousel
2
3
  //= require ./effective_bootstrap/confirm
3
4
  //= require ./effective_bootstrap/form
4
5
  //= require ./effective_bootstrap/load_ajax
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '1.26.0'.freeze
2
+ VERSION = '1.26.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.0
4
+ version: 1.26.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
@@ -437,6 +437,7 @@ files:
437
437
  - app/assets/javascripts/effective_article_editor/input.js
438
438
  - app/assets/javascripts/effective_bootstrap.js
439
439
  - app/assets/javascripts/effective_bootstrap/base.js.coffee
440
+ - app/assets/javascripts/effective_bootstrap/carousel.js
440
441
  - app/assets/javascripts/effective_bootstrap/confirm.js.coffee.erb
441
442
  - app/assets/javascripts/effective_bootstrap/form.js.coffee
442
443
  - app/assets/javascripts/effective_bootstrap/load_ajax.js