effective_bootstrap 0.6.26 → 0.6.27

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04d0aa8b1c7650af3d1ab484028ac21d568258af71bb4ff321265d8804f79083
4
- data.tar.gz: 9f8b936083d51a3905311c5e4fe9c1d861d11a2f1b547dd14343e80a99307c4a
3
+ metadata.gz: 920c149a3c3c86e3b88a1ba579b4a52b3cf993731dabf1f400cd3f0e90fb55c4
4
+ data.tar.gz: 616923114dafbbe144209a5a12f66061f7487dcfc67ee3bf8a6316511f8f0e5e
5
5
  SHA512:
6
- metadata.gz: 2933e838a12ad3f8a0e10358af853fb13e3a7c856bb005ad7438369d9187f0784a0bfb2b7999adccb0ad11e650e27eb59802bb2d3de33a5ab6cdbd30dd3ee48c
7
- data.tar.gz: '096001e254fe4309420bfc15888140e0e3c446894960f5e33f8b1843c101dc062d85e6c054dd35377a60f6a96f406827e3cfc947b05cc77a56b477a4b1f392df'
6
+ metadata.gz: e761192cd05beab319b90537bb19988c08328c648f9eb2e68892a32f7087b05849a9719644b7aea7232a555faff40b0fb8c8b713d66f5f36ffe6add2ff8e9cd6
7
+ data.tar.gz: 64f216591d8ef152216fe49e4bcd30e757d2084daaf349adca7a69cf0269d621199b96d723c67b22f4f42b57cb4c49e3aef0544d57c49883882c3be5a9e75738
@@ -1,16 +1,14 @@
1
- let initTabs = function() {
2
- let $tab_with_error = $(".form-control.is-invalid").first().closest('.tab-pane');
1
+ $(document).ready(function() {
2
+ var $tab_with_error = $(".form-control.is-invalid").first().closest('.tab-pane');
3
3
 
4
4
  if ($tab_with_error.length > 0) {
5
5
  $(".nav.nav-tabs").find("a[href^='#" + $tab_with_error.attr('id') + "']").tab('show');
6
6
  } else if (document.location.hash.length > 0) {
7
- let $tab_from_url = $(".nav.nav-tabs").find("a[href^='" + document.location.hash + "']");
7
+ var $tab_from_url = $(".nav.nav-tabs").find("a[href^='" + document.location.hash + "']");
8
8
 
9
9
  if ($tab_from_url.length > 0) {
10
10
  document.location.hash = ""; // This prevents scrolling to the wrong place in the page
11
11
  $tab_from_url.tab("show");
12
12
  }
13
13
  }
14
- }
15
-
16
- $(document).ready(initTabs);
14
+ });
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.6.26'.freeze
2
+ VERSION = '0.6.27'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.26
4
+ version: 0.6.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-13 00:00:00.000000000 Z
11
+ date: 2020-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails