effective_bootstrap 0.6.26 → 0.6.31
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 +4 -4
- data/app/assets/javascripts/effective_bootstrap/tabs.js +4 -6
- data/app/helpers/effective_bootstrap_helper.rb +2 -2
- data/app/models/effective/form_inputs/file_field.rb +1 -1
- data/app/models/effective/form_inputs/select.rb +3 -1
- data/lib/effective_bootstrap/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c0cddb3d35a7304636a4195dcd3dc13c4ad2e7b9bbe39afa46cbd6a612b950a
|
4
|
+
data.tar.gz: 701b0c67281d8842264e61169cf022480f60b0c8154681d40aca711f7f595c81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04ea0b1c51eabbd6e88608ebb0deedbef1e349e79a2fff98fb4b1a8634a4ea6376b41764b912f16129f96dc77b7d367c3eaf6cf0c3d39f0a451827d2d51e9742
|
7
|
+
data.tar.gz: 2c67cf1d9e511d38e935b553154dcb91930ab0b35ef18c7d7ada4007bab2e2f83785b6f17e81b07c9125a25224aa63b027111ff1cf511d3e773bd698ebec5137
|
@@ -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
|
+
});
|
@@ -37,7 +37,7 @@ module EffectiveBootstrapHelper
|
|
37
37
|
|
38
38
|
link_opts[:class] = opts.delete(:link_class) || 'btn btn-link'
|
39
39
|
div_class = opts.delete(:div_class)
|
40
|
-
card_class = opts.delete(:card_class) || 'my-2'
|
40
|
+
card_class = opts.delete(:card_class) || 'card card-body my-2'
|
41
41
|
|
42
42
|
if @_accordion_active
|
43
43
|
# Accordion collapse
|
@@ -55,7 +55,7 @@ module EffectiveBootstrapHelper
|
|
55
55
|
# Normal collapse
|
56
56
|
content_tag(:a, label, link_opts) +
|
57
57
|
content_tag(:div, id: id, class: ['collapse', div_class, ('show' if show)].compact.join(' ')) do
|
58
|
-
content_tag(:div, capture(&block), class:
|
58
|
+
content_tag(:div, capture(&block), class: card_class)
|
59
59
|
end
|
60
60
|
end
|
61
61
|
end
|
@@ -77,7 +77,9 @@ module Effective
|
|
77
77
|
end
|
78
78
|
|
79
79
|
if options_collection.kind_of?(Hash)
|
80
|
-
options_collection[include_null] = [
|
80
|
+
options_collection[include_null] = [
|
81
|
+
Struct.new(:to_s, :id, :first, :second).new(include_null, 'nil', include_null, 'nil')
|
82
|
+
]
|
81
83
|
end
|
82
84
|
|
83
85
|
options_collection
|
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.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -626,7 +626,7 @@ homepage: https://github.com/code-and-effect/effective_bootstrap
|
|
626
626
|
licenses:
|
627
627
|
- MIT
|
628
628
|
metadata: {}
|
629
|
-
post_install_message:
|
629
|
+
post_install_message:
|
630
630
|
rdoc_options: []
|
631
631
|
require_paths:
|
632
632
|
- lib
|
@@ -641,8 +641,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
641
641
|
- !ruby/object:Gem::Version
|
642
642
|
version: '0'
|
643
643
|
requirements: []
|
644
|
-
rubygems_version: 3.
|
645
|
-
signing_key:
|
644
|
+
rubygems_version: 3.1.2
|
645
|
+
signing_key:
|
646
646
|
specification_version: 4
|
647
647
|
summary: Everything you need to get set up with bootstrap 4.
|
648
648
|
test_files: []
|