thin_man 0.9.3 → 0.9.4
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 +2 -1
- data/lib/thin_man/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 488fa4055cdc8502c042fa47428b54bf8d883d89
|
4
|
+
data.tar.gz: 7bc2ee1da59f974b6e8973fa7a20895191d0cc6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9900665f025ff23cd2a0932a50ccfe47f895918f6d0ab8ddb536fc37b5bb134d256c13f18a83d3ddcbfe3efe3f9ed4fbd64df2ec11e2b9acc555f4d6184355e
|
7
|
+
data.tar.gz: 8b8a15d44e4e28155e81c8f6bfc1077b2959bc1253d6f948b06b2cd3fbf8c84de02cb1c73c6a64eca5031a3dbd454b67cf153f5a08157fdf0b681f7f583d8094
|
data/lib/thin_man/ajax_helper.rb
CHANGED
@@ -39,13 +39,14 @@ module ThinMan
|
|
39
39
|
html_options.merge(ajax_options))
|
40
40
|
end
|
41
41
|
|
42
|
-
def ajax_form_hash(target, sub_class: nil, insert_method: nil, error_target: nil, empty_on_success: nil)
|
42
|
+
def ajax_form_hash(target, sub_class: nil, insert_method: nil, error_target: nil, empty_on_success: nil, container: nil)
|
43
43
|
ajax_options = {
|
44
44
|
'data-ajax-form' => true,
|
45
45
|
'data-ajax-target' => target
|
46
46
|
}
|
47
47
|
ajax_options.merge!('data-insert-method' => insert_method) if insert_method.present?
|
48
48
|
ajax_options.merge!('data-sub-type' => sub_class) if sub_class.present?
|
49
|
+
ajax_options.merge!('data-container' => container) if container.present?
|
49
50
|
ajax_options.merge!('data-error-target' => error_target) if error_target.present?
|
50
51
|
ajax_options.merge!('data-empty-on-success' => empty_on_success) if empty_on_success.present?
|
51
52
|
ajax_options
|
data/lib/thin_man/version.rb
CHANGED