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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 920c149a3c3c86e3b88a1ba579b4a52b3cf993731dabf1f400cd3f0e90fb55c4
|
4
|
+
data.tar.gz: 616923114dafbbe144209a5a12f66061f7487dcfc67ee3bf8a6316511f8f0e5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e761192cd05beab319b90537bb19988c08328c648f9eb2e68892a32f7087b05849a9719644b7aea7232a555faff40b0fb8c8b713d66f5f36ffe6add2ff8e9cd6
|
7
|
+
data.tar.gz: 64f216591d8ef152216fe49e4bcd30e757d2084daaf349adca7a69cf0269d621199b96d723c67b22f4f42b57cb4c49e3aef0544d57c49883882c3be5a9e75738
|
@@ -1,16 +1,14 @@
|
|
1
|
-
|
2
|
-
|
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
|
-
|
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
|
+
});
|
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.
|
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-
|
11
|
+
date: 2020-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|