effective_bootstrap 0.10.5 → 0.10.6

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: 1c6383d06acf8e9dd6cc19e7f92fe5490a097155b30d06e8cb4f115f52e422ad
4
- data.tar.gz: 5d5b66cd66c32a3be2837dd3b98eee4455f249f1d34698a689ee725ed9aa1d80
3
+ metadata.gz: 7ba2eb5dbf37fdf09730ef6cfb8c37ab0897ed37b7a0089b1128d63a97e0cce9
4
+ data.tar.gz: 1a35f8b75f1ba029541d35b56cc74ca5b94274e367ccf6515b896c14cdf505a1
5
5
  SHA512:
6
- metadata.gz: 0d8a7fc1a63268357e5d7f8897616600b4fa69d3f8d93dafe2fe7113a5bf09e93f353ecef7490c5aeba0d28340e00d4fbc251c8d3b99ea04883d0ec82190d421
7
- data.tar.gz: 6604b919e861cb11fc3957130c94fa4058b31be939ad49b219c45766d1a75061e682ee9dc521bcdd5776163832f241097e623480bae1c25b442146e5835406e9
6
+ metadata.gz: 82d3bd6f546c27a1291b7fa38c659a81cd7e601cf5cbcb16def771d09728ad44929faa58abe1de332b812dbe2a95e08ffac6c6b26cc84327d5fb5df46cd0758a
7
+ data.tar.gz: 576b9152be489de519cc2cee490ff5f6d340f53bc023a1f4f087f398462a7101ed5180f293225ac9cdcb8923c2e3d38d1dd610f8abbf6967c3db57460190225a
@@ -3,13 +3,13 @@ $(document).ready(function() {
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
- } else if (document.location.hash.length > 0) {
7
- var $tab_from_url = $(".nav.nav-tabs").find("a[href^='" + document.location.hash + "']");
6
+ return true;
8
7
 
9
- if ($tab_from_url.length > 0) {
10
- document.location.hash = ""; // This prevents scrolling to the wrong place in the page
11
- $tab_from_url.tab("show");
12
- }
8
+ } else if (document.location.search.length > 0) {
9
+ var tab = new URLSearchParams(document.location.search).get('tab');
10
+ if(tab.length == 0) { return false; }
11
+
12
+ $('.nav.nav-tabs').find("a[href^='#" + tab + "']").tab('show');
13
13
  }
14
14
  });
15
15
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.10.5'.freeze
2
+ VERSION = '0.10.6'.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.10.5
4
+ version: 0.10.6
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: 2022-02-28 00:00:00.000000000 Z
11
+ date: 2022-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails