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 +4 -4
- data/app/assets/javascripts/thin_man.js +6 -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: 43af8622cdcdfa9d1672f9111cfb468c273da0c2
|
4
|
+
data.tar.gz: 0b9b72701dee54c1b46b11352992859955738e3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
}
|
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.15.
|
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-
|
11
|
+
date: 2016-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|