thin_man 0.15.13 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9b07c9af95707c57a982f7cdee7f3322b95502f
4
- data.tar.gz: 4b1e8263b98f084fc8106433e840a52138b9aa16
3
+ metadata.gz: b0ab417634c3d8207d1f550b291a80cbde47ba3c
4
+ data.tar.gz: 2fec6c5603e125b236c4b52c924d1e6dc557ae64
5
5
  SHA512:
6
- metadata.gz: 91aa64b10c2ee2a9ed8ecea75d6e550981143fce49b81fa45ebc4d29a2cc00944c3a4119b77ab10a0510bb264b2e8d0cee57b4674e194a33bdb402ee6c699e1b
7
- data.tar.gz: 5592648b37b19700445460c93ca656b983e16521094262062192db7dbc95f06978a9406944e0794281f5dd10ac98673d749735eb12301c5232809a4cffe4a52b
6
+ metadata.gz: 79d2c93ea534c915a8f7a7b227e2a652e01e439a3e1188df3efd55290d7172c6209e10f29858d4c2210827915b31c92df4b3f1547669a0f945be40533714747b
7
+ data.tar.gz: d88b5bb08d405aa4e81e8b0f579f9bf8bc07a2394fa6875aaa7d0d4703a6b561d8b2122ed1944b7c73763a6fd771c13e4249f91cd8a7627f8d1d6519a6998c2b
@@ -268,7 +268,7 @@ var initThinMan = function(){
268
268
  }),
269
269
  AjaxProgress: Class.extend({
270
270
  init: function(target,alt,progress_color){
271
- if(target.length > 0 && target.is(':visible') && target.css('display') != 'inline'){
271
+ if(target.length > 0 && target.is(':visible') && target.css('display') != 'inline' && target.css('display') != 'inline-block'){
272
272
  this.progress_target = target;
273
273
  } else if(typeof(alt) != 'undefined' && alt.is(':visible')) {
274
274
  this.progress_target = alt;
@@ -381,11 +381,18 @@ var initThinMan = function(){
381
381
  var button_name = $clicked.attr('name')
382
382
  var button_value = $clicked.attr('value')
383
383
  }
384
+ var event_data = this.params
385
+ if(!event_data.hasOwnProperty('e')){
386
+ var thin_man_submitter = 'link_now'
387
+ }else{
388
+ var thin_man_submitter = this.params['e'].type
389
+ }
384
390
  if((this.getAjaxType().toLowerCase() == 'get') || (typeof FormData == 'undefined')){
385
391
  var data_array = this.jq_obj.serializeArray();
386
392
  if(button_name && button_value){
387
393
  data_array.push({name: button_name, value: button_value})
388
394
  }
395
+ data_array.push({name: 'thin_man_submitter', value: thin_man_submitter})
389
396
  return data_array;
390
397
  }else{
391
398
  // need to implement a data-attribute for multiple file fields so we can allow selecting mutliple files at once. example here:
@@ -398,6 +405,11 @@ var initThinMan = function(){
398
405
  fd.append(button_name, button_value)
399
406
  }
400
407
  }
408
+ if(typeof fd.set != 'undefined'){
409
+ fd.set('thin_man_submitter', thin_man_submitter)
410
+ } else if(typeof fd.append != 'undefined'){
411
+ fd.append('thin_man_submitter', thin_man_submitter)
412
+ }
401
413
  return fd
402
414
  }
403
415
  },
@@ -1,3 +1,3 @@
1
1
  module ThinMan
2
- VERSION = "0.15.13"
2
+ VERSION = "0.16.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.15.13
4
+ version: 0.16.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: 2017-01-02 00:00:00.000000000 Z
11
+ date: 2017-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails