bootstrap_builders 0.0.53 → 0.0.54
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae438186e6b0fc20b3d6d262bf8d389e1b6ad534
|
4
|
+
data.tar.gz: 550979b9c36bb21bf88cbcebdc6b436e666e31da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
}
|
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.
|
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-
|
11
|
+
date: 2017-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|