thin_man 0.19.4 → 0.19.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/thin_man/ajax_helper.rb +4 -2
- data/lib/thin_man/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b584855bc4063c49c203b7757b4df16f9ba6f226
|
4
|
+
data.tar.gz: f81f2377a8ffdb2bc70e062df83fec105d4bf055
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11d8e67f3d423700e98e9d0c7dcab9a51cb99ae79f672cabf253c91381e658227d9921e35ad94deabd23ba969c33d7c4e702e550882bbd36be84749a77d77af9
|
7
|
+
data.tar.gz: 642fb8905c8ee5976ec61185df6d511ffc23bb462a53cf66f3689e174d18c68f6d19f3929bb592debbdb7c881f19fe82e32e052c1d01ac8cf52772311a0960a9
|
data/lib/thin_man/ajax_helper.rb
CHANGED
@@ -69,7 +69,7 @@ module ThinMan
|
|
69
69
|
def ajax_form_hash(target, sub_class: nil, insert_method: nil,
|
70
70
|
error_target: nil, empty_on_success: nil, reset_on_success: nil, remove_on_success: nil,
|
71
71
|
container: nil, custom_progress: nil, no_mouse_click: nil,
|
72
|
-
mask_target: nil, mask_message: nil,
|
72
|
+
mask_target: nil, mask_message: nil, scroll_to: nil,
|
73
73
|
progress_target: nil, progress_color: nil)
|
74
74
|
ajax_options = {
|
75
75
|
'data-ajax-form' => true,
|
@@ -88,6 +88,7 @@ module ThinMan
|
|
88
88
|
ajax_options.merge!('data-progress-color' => progress_color) if progress_color.present?
|
89
89
|
ajax_options.merge!('data-mask-target' => mask_target) if mask_target.present?
|
90
90
|
ajax_options.merge!('data-mask-message' => mask_message) if mask_message.present?
|
91
|
+
ajax_options.merge!('data-scroll-to' => scroll_to) if scroll_to.present?
|
91
92
|
ajax_options
|
92
93
|
end
|
93
94
|
|
@@ -119,7 +120,7 @@ module ThinMan
|
|
119
120
|
def ajax_form_attrs(target, sub_class: nil,
|
120
121
|
insert_method: nil, error_target: nil, remove_on_success: nil,
|
121
122
|
empty_on_success: nil, reset_on_success: nil, no_mouse_click: nil,
|
122
|
-
progress_target: nil, progress_color: nil,
|
123
|
+
progress_target: nil, progress_color: nil, scroll_to: nil,
|
123
124
|
mask_target: nil, mask_message: nil )
|
124
125
|
data_attrs = "data-ajax-form=true data-ajax-target=#{target}"
|
125
126
|
data_attrs += " data-insert-method=#{insert_method}" if insert_method
|
@@ -133,6 +134,7 @@ module ThinMan
|
|
133
134
|
data_attrs += " data-progress-color=#{progress_color}" if progress_color
|
134
135
|
data_attrs += " data-mask-target=#{mask_target}" if mask_target
|
135
136
|
data_attrs += " data-mask-message=#{mask_message}" if mask_message
|
137
|
+
data_attrs += " data-scroll-to=#{scroll_to}" if scroll_to
|
136
138
|
data_attrs
|
137
139
|
end
|
138
140
|
|
data/lib/thin_man/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thin_man
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Draut, Adam Bialek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|