bootstrap_builders 0.0.53 → 0.0.54

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
  SHA1:
3
- metadata.gz: e86c670647d135f608e5846d3f984e835143c152
4
- data.tar.gz: a458d2f34901c85888b11d7cfcaf2ed87d357937
3
+ metadata.gz: ae438186e6b0fc20b3d6d262bf8d389e1b6ad534
4
+ data.tar.gz: 550979b9c36bb21bf88cbcebdc6b436e666e31da
5
5
  SHA512:
6
- metadata.gz: 9d35e515f828093bbfc05428b4a7067758fc9ad26e371ebca8e63c54f56f3e929ea7fb7bb69c45aca25533768f82c6cc1c0149290d4af867579aad706a4fad79
7
- data.tar.gz: 2e786f791b94fbf456633cda46673083a77edf83b51ed848d22bf8de49351bc764ff0259ce6fcb53843b1329ead390c4c2336d2c98ff3f3ed823bb3e6b68af8c
6
+ metadata.gz: 989ca18846af5d3730a6db5dd859e84a0c2a3f3a12a435665cfb1bbbb58b1b5d6b3ffbf1ac66acd199b0c0789d8f9dd9efcbda006cade0e2b9df202f3845c5df
7
+ data.tar.gz: 196b8667d988234e4282af102bf675e43d1e9d45dd40acfd3b11b58f93c12e519749ed1289f14109bab98ff97daeb2ee694b20b0fe7dd249d8a3398db53ead7f
@@ -1,7 +1,7 @@
1
1
  function loadAjaxTab(li) {
2
- link = $("a", li)
3
- content_id = link.attr("href").substring(1, 999)
4
- content = $(".bb-tabs-container #" + content_id + " .bb-tab-container")
2
+ var link = $("a", li)
3
+ var content_id = link.attr("href").substring(1, 999)
4
+ var content = $(".bb-tabs-container #" + content_id + " .bb-tab-container")
5
5
 
6
6
  li.data("ajax-loaded", true)
7
7
  content.fadeOut(0, function() {
@@ -15,12 +15,12 @@ function loadAjaxTab(li) {
15
15
  $(document).ready(function() {
16
16
  //Loads the dynamic content of a tab when activated and sets the URL to the tab ID
17
17
  $("body").on("click", ".bb-tabs-container .nav li", function() {
18
- li = $(this)
18
+ var li = $(this)
19
19
 
20
20
  if (li.data("ignore-next-history-push")) {
21
21
  li.data("ignore-next-history-push", null)
22
22
  } else if(li.data("specific-id-given")) {
23
- urlb = new UrlBuilder(window.location.href)
23
+ var urlb = new UrlBuilder(window.location.href)
24
24
  urlb.queryParameters["bb_selected_tab"] = $(this).data("tab-container-id")
25
25
 
26
26
  window.history.pushState({active_tab: li.data("tab-container-id"), event: "bb-tab-change"}, null, urlb.pathWithQueryParameters())
@@ -34,16 +34,17 @@ $(document).ready(function() {
34
34
  // Changes the tab on 'back' and 'forward' events
35
35
  $(window).bind("popstate", function(e) {
36
36
  if (e.originalEvent.state && e.originalEvent.state.event == "bb-tab-change") {
37
- selected_tab = e.originalEvent.state.active_tab
37
+ var selected_tab = e.originalEvent.state.active_tab
38
38
  } else {
39
- urlb = new UrlBuilder(window.location.href)
40
- selected_tab = urlb.queryParameters["bb_selected_tab"]
39
+ var urlb = new UrlBuilder(window.location.href)
40
+ var selected_tab = urlb.queryParameters["bb_selected_tab"]
41
41
  }
42
42
 
43
43
  if (!selected_tab) {
44
44
  selected_tab = $($(".bb-tabs-container .nav li").first()).data("tab-container-id")
45
45
  }
46
46
 
47
+ var li = null
47
48
  if (selected_tab) {
48
49
  li = $("li[data-tab-container-id='" + selected_tab + "']")
49
50
  }
@@ -1,3 +1,3 @@
1
1
  module BootstrapBuilders
2
- VERSION = "0.0.53".freeze
2
+ VERSION = "0.0.54".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_builders
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.53
4
+ version: 0.0.54
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaspernj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-25 00:00:00.000000000 Z
11
+ date: 2017-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails