effective_bootstrap 1.18.6 → 1.19.0
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: 844038db1d595831ec16f1cd49a7f3c89bb8b7b877261d36babc5560da5f7a72
|
4
|
+
data.tar.gz: ac61d9e612506dd44cd17b475f2fd2b462ad2aec596867d64c6c1227a927a7cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00da333a9a954cc0d2726fd04c8609f07028f310aa8e74c75ca8a095879665013d9343948466d4a1520d210a28a912dca4bb7a1b6085a73334b45e47b48f74c2
|
7
|
+
data.tar.gz: 2bf1ae4caaa18d4ce889319408a45f3f6e65e18bfd2682fbe03b700ed98fdd6800e994b195ad7434165be72a7cae61e80ce376e4e77605c33c5d3134975b3e09
|
@@ -105,8 +105,8 @@ this.EffectiveForm ||= new class
|
|
105
105
|
|
106
106
|
# Process remote form
|
107
107
|
if $form.length > 0
|
108
|
-
try EffectiveBootstrap.initialize($form)
|
109
108
|
$target.replaceWith($form)
|
109
|
+
try EffectiveBootstrap.initialize($form)
|
110
110
|
else
|
111
111
|
$form = @reset($target) # There is no remote form. So we assume success and reset the submitted one.
|
112
112
|
|
@@ -151,10 +151,12 @@ module Effective
|
|
151
151
|
case mode
|
152
152
|
when :default, :admin
|
153
153
|
default_mode.merge(active_storage: active_storage, css: css, custom: { css: custom_css })
|
154
|
+
when :email
|
155
|
+
restricted_mode.merge(active_storage: false, css: css, custom: { css: custom_css })
|
154
156
|
when :restricted
|
155
157
|
restricted_mode.merge(active_storage: false, css: css, custom: { css: custom_css })
|
156
158
|
else
|
157
|
-
raise("unexpected mode: #{mode}. Try :default or :restricted")
|
159
|
+
raise("unexpected mode: #{mode}. Try :default, :email, or :restricted")
|
158
160
|
end
|
159
161
|
end
|
160
162
|
|
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: 1.
|
4
|
+
version: 1.19.0
|
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: 2024-
|
11
|
+
date: 2024-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|