thin_man 0.15.7 → 0.15.8

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: 71de9e24b17fcf6f8ce9970711290e3e3cf45918
4
- data.tar.gz: 240679f9a47363b2dab81b86a79ccdbc4e8a76c8
3
+ metadata.gz: 6779a68452e92f36738fed109f92449110a66bcd
4
+ data.tar.gz: 0ae8efe05b5928b498d40875dee75aab50eb1e07
5
5
  SHA512:
6
- metadata.gz: 93baad307f7be01ddf604a1b29218b0c7bedf1fd39672010986c7c8a16836f9afdd6b6bb1ff5b9ca1ffd8b30fd928508131557d858994ad5b3efe89330aae81c
7
- data.tar.gz: fea0cc3ff26b37b013ff70cc5dc48c6d103d9baba0fe12a95a03dbb110ebb21c85a6ff52a6d805b4d13ee49e338337ee6573de6ac85c9674b01adb84034025ac
6
+ metadata.gz: b4ef51cf77238bdf29cad939d163dfe920bdc85541c27f8711c0e81eba46809e489dd19c64bdd522655026b924a60083e36a9e1b4e24a2b779725fae173510aa
7
+ data.tar.gz: aa501036540e2b82d583d8ead1a4ad3c500972e475832e841ddb85c1a4345a07e5856bb3f625b98f6ad1376f25864d1a6a66e4004ecfa3eb2c547732027dbf3f
@@ -23,7 +23,7 @@ var initThinMan = function(){
23
23
  this.progress_color = jq_obj.data('progress-color');
24
24
  this.progress_target = $(jq_obj.data('progress-target'));
25
25
  this.custom_progress = typeof(jq_obj.data('custom-progress')) != 'undefined';
26
- if(this.progress_target.length == 0){
26
+ if(this.progress_target.length == 0 && this.trigger.length > 0){
27
27
  this.progress_target = this.trigger
28
28
  this.trigger_is_progress_target = true
29
29
  }
@@ -419,7 +419,10 @@ var initThinMan = function(){
419
419
  getTrigger: function(){
420
420
  this.trigger = this.jq_obj.find('button, input[type="submit"]');
421
421
  if(this.trigger.length != 1){
422
- this.trigger = $(document.activeElement)
422
+ var $active_element = $(document.activeElement)
423
+ if($active_element[0].nodeName.toLowerCase() != 'body'){
424
+ this.trigger = $active_element
425
+ }
423
426
  }
424
427
  },
425
428
  hideTrigger: function(){
@@ -1,3 +1,3 @@
1
1
  module ThinMan
2
- VERSION = "0.15.7"
2
+ VERSION = "0.15.8"
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.7
4
+ version: 0.15.8
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-11-20 00:00:00.000000000 Z
11
+ date: 2016-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails