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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cabf673a8f1735b090528d1706a2a64197e69b3
4
- data.tar.gz: a32c900a9b6ee7738a10b4d825bb49a7e8f2d3b5
3
+ metadata.gz: baf110af4d5e9c081e1d27ee759abff04977acac
4
+ data.tar.gz: a77872b785319b903a4f4d32c97ef3cfe7c3ffea
5
5
  SHA512:
6
- metadata.gz: 7e8a9d1b449cc3836eefe8566b8e01ca2df82ab1b1107a7a688505a190554c2342f15de0eef282e71df2a80a84b1ae288dbfeb130a0879eb44d5c4386a988011
7
- data.tar.gz: e808965ee5770c87154194fdc63ca15b27a3a3c9c4227d258015be302d49d80250d632d52b7e7cebf6145a77a5cb1ec034a9ea427247f0028ba3b758becbd813
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
- var data_array = this.jq_obj.serializeArray();
319
- return data_array;
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"]');
@@ -1,3 +1,3 @@
1
1
  module ThinMan
2
- VERSION = "0.9.7"
2
+ VERSION = "0.10.0"
3
3
  end
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.9.7
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-26 00:00:00.000000000 Z
11
+ date: 2015-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails