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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ceb3bba806853497fb5290b90df0d1ad27710099de47f927b99b0037f6ce13ce
|
|
4
|
+
data.tar.gz: 8ac20f1907bdb52800c6330df1f36a51b36303bf05829c2a8f89b4a74d4c6002
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
+
});
|
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.
|
|
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
|