thin_man 0.9.7 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/thin_man.js +6 -3
- 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: baf110af4d5e9c081e1d27ee759abff04977acac
|
4
|
+
data.tar.gz: a77872b785319b903a4f4d32c97ef3cfe7c3ffea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 124990def27447ad2ccc215db146b6db878cdc57849ef2f46f5ad5015597a514c11a7ebd77435f79a8c4a30ae6cef1e6194438ce03ef58f8023446089dd3c081
|
7
|
+
data.tar.gz: 7f3e4d4510aa91ab06aecefa35c169b2415955582dbb2b7be75e86e2d24f04a6a7a099b8ad9131dc1f65dc1cc598bc27eae57375c5196fbfbd6dddc12ef67ff7
|
@@ -31,7 +31,9 @@ var initThinMan = function(){
|
|
31
31
|
beforeSend: function(jqXHr) { return ajax_submission.ajaxBefore(jqXHr) },
|
32
32
|
success: function(data,textStatus,jqXHR) { ajax_submission.ajaxSuccess(data,textStatus,jqXHR) },
|
33
33
|
error: function(jqXHr) { ajax_submission.ajaxError(jqXHr) },
|
34
|
-
complete: function(jqXHr) { ajax_submission.ajaxComplete(jqXHr) }
|
34
|
+
complete: function(jqXHr) { ajax_submission.ajaxComplete(jqXHr) },
|
35
|
+
contentType: false,
|
36
|
+
processData: false
|
35
37
|
};
|
36
38
|
$.ajax(ajax_submission.ajax_options);
|
37
39
|
},
|
@@ -315,8 +317,9 @@ var initThinMan = function(){
|
|
315
317
|
return this.jq_obj.attr('method') || 'POST'
|
316
318
|
},
|
317
319
|
getData: function(){
|
318
|
-
|
319
|
-
|
320
|
+
// need to implement a data-attribute for multiple file fields so we can allow selecting mutliple files at once. example here:
|
321
|
+
// http://stackoverflow.com/questions/12989442/uploading-multiple-files-using-formdata
|
322
|
+
return new FormData(this.jq_obj[0]);
|
320
323
|
},
|
321
324
|
getTrigger: function(){
|
322
325
|
this.trigger = this.jq_obj.find('button, input[type="submit"]');
|
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.
|
4
|
+
version: 0.10.0
|
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: 2015-08-
|
11
|
+
date: 2015-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|