effective_bootstrap 0.5.7 → 0.5.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 924e625edc3abab84f5eba1a7ddd7c7c8259e8e4
|
4
|
+
data.tar.gz: 36ecf566fcdc57afc35cdaa964a4c8eea1992f1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fd766f9e8a968291b5b51fb7d7c753f25f82c7943bf683963a211bc04acd0bfa6b90c19c96c47b7aa9c962536f9d060f5b22e5c2bbf78c48abf49a482df71f8
|
7
|
+
data.tar.gz: 08e70de9e27710de91e86e7719d722814c270dd8f3fd2e9bde86e8480fb540b0aefafc01f94e1a803caa0b43e5f3082c447fa68aa2523a5a9aa7872ab1ef5d2b
|
@@ -13,11 +13,19 @@ module EffectiveFormBuilderHelper
|
|
13
13
|
"new_#{class_name}"
|
14
14
|
end
|
15
15
|
|
16
|
-
options[:class] = [
|
16
|
+
options[:class] = [
|
17
|
+
options[:class],
|
18
|
+
'needs-validation',
|
19
|
+
('form-inline' if options[:layout] == :inline),
|
20
|
+
('with-errors' if subject.respond_to?(:errors) && subject.errors.present?)
|
21
|
+
].compact.join(' ')
|
22
|
+
|
17
23
|
options[:html] = (options[:html] || {}).merge(novalidate: true, onsubmit: 'return EffectiveForm.validate(this);')
|
18
24
|
|
19
25
|
remote_index = options.except(:model).hash.abs
|
20
26
|
|
27
|
+
options[:remote] = true if respond_to?(:inline_datatable?) && inline_datatable?
|
28
|
+
|
21
29
|
if options.delete(:remote) == true
|
22
30
|
@_effective_remote_index ||= 0
|
23
31
|
|
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.5.
|
4
|
+
version: 0.5.8
|
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: 2019-05-
|
11
|
+
date: 2019-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|