thin_man 0.15.10 → 0.15.11

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: d59634915ba675b156dc9e20e48f022f41d376a1
4
- data.tar.gz: fd619ef1d16df6e258d269d770aad07d97855e75
3
+ metadata.gz: 43af8622cdcdfa9d1672f9111cfb468c273da0c2
4
+ data.tar.gz: 0b9b72701dee54c1b46b11352992859955738e3d
5
5
  SHA512:
6
- metadata.gz: 14a8d6afaac15c24f8810ea6394a2c654314d996a35d227ddb6f02b9442fdded26b9adea21ad4dffb175b90ecd383ddb9ee998abc6b5cf513f560786e7f3ec3d
7
- data.tar.gz: 90c44c5232e10fc0642b8535370ca02667976fafcace427c73b0e308048591deab5f9495f38dc2e4ffd87d5dfb54744894d1cfe738a8b121db65eddd43c3d90e
6
+ metadata.gz: be7f97d83c96762539335e3c313e4fb724b1e09d325142fefa17cfadcc0ab1951d746a4396f56d59d47925db973323de49b7af4c93c58d9e4329e2b505f04688
7
+ data.tar.gz: aeba705772a868fa4906c4215cacc00ad5239b9c68090181faa0af607d000b4c88fec4de8087476123a85f86bdde9d32ce439721d4b35051c72510072693fe91
@@ -376,7 +376,7 @@ var initThinMan = function(){
376
376
  var button_name = $clicked.attr('name')
377
377
  var button_value = $clicked.attr('value')
378
378
  }
379
- if(this.getAjaxType().toLowerCase() == 'get'){
379
+ if((this.getAjaxType().toLowerCase() == 'get') || (typeof FormData == 'undefined')){
380
380
  var data_array = this.jq_obj.serializeArray();
381
381
  if(button_name && button_value){
382
382
  data_array.push({name: button_name, value: button_value})
@@ -387,7 +387,11 @@ var initThinMan = function(){
387
387
  // http://stackoverflow.com/questions/12989442/uploading-multiple-files-using-formdata
388
388
  var fd = new FormData(this.jq_obj[0]);
389
389
  if(button_name && button_value){
390
- fd.set(button_name, button_value)
390
+ if(typeof fd.set != 'undefined'){
391
+ fd.set(button_name, button_value)
392
+ } else if(typeof fd.append != 'undefined'){
393
+ fd.append(button_name, button_value)
394
+ }
391
395
  }
392
396
  return fd
393
397
  }
@@ -1,3 +1,3 @@
1
1
  module ThinMan
2
- VERSION = "0.15.10"
2
+ VERSION = "0.15.11"
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.15.10
4
+ version: 0.15.11
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: 2016-12-13 00:00:00.000000000 Z
11
+ date: 2016-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails