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 +4 -4
- data/app/assets/javascripts/thin_man.js +5 -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: 6779a68452e92f36738fed109f92449110a66bcd
|
4
|
+
data.tar.gz: 0ae8efe05b5928b498d40875dee75aab50eb1e07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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(){
|
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.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
|
+
date: 2016-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|