thin_man 0.20.8 → 0.20.9

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
  SHA256:
3
- metadata.gz: 785077cef9f4272c5ef085fd46a0fff922f2948f38b0bd3d35f09f52e2eaeac5
4
- data.tar.gz: 7aea9de5c7bf16ecc9e0de2be2ebb9a368b73b16943b26362675664c33930918
3
+ metadata.gz: d8ca33003f888522689fdbfdfc902fed5b4114859b6d98ce76773bacf8faf04f
4
+ data.tar.gz: 4dd70a0f47da6afbdacb1d1a55b8fc16d635e587e1ed94d3eea4ae4b9ac018ff
5
5
  SHA512:
6
- metadata.gz: a01759d57c9c137c5520373f2d314c8e6a3697167e5d97be18f2750dd6cda7464b2dce872394d7a952df868f98461dcb968457ec048030f78181f3524bb78a54
7
- data.tar.gz: 91589300a0b542377d987f37fd38d7bed4c3d25f0dc2a6c61fc447f65d52130f9dda18ca5045cd780c49a4f8520a0d64f1fb93ac87c826c88f533906d1e00938
6
+ metadata.gz: ee68fc3fa700c2e87fc2596bdaec83ea214d37158a6090b0997c423b4dbc4ca4ab8bc19e81d14cc1af7d547db18904d1f084e952c2d8d5ed7b0d93ad76cd2942
7
+ data.tar.gz: 7d2c7773dab63e96e292f41709cf83d0e788225bae320051e98904b5dc0a5766e70d145e4e6ab6d1bd646f2c87e6b8e82f8cbc7fc8bb13768d1899e1306f2ec2
@@ -546,13 +546,16 @@ var initThinMan = function() {
546
546
  this.$mask.show()
547
547
  },
548
548
  disableScroll: function(){
549
- if($(window).width() >= 640){
550
- var mask = this
551
- mask.old_height = $('body')[0].style.height
552
- mask.old_overflow = $('body')[0].style.overflow
553
- $('body').css({height: '100%',overflow: 'hidden'})
554
- } else {
555
- $('body').children().not('.ajax-mask-public').hide()
549
+ if(!thin_man.scroll_disabled){
550
+ thin_man.scroll_disabled = true
551
+ if($(window).width() >= 640){
552
+ var mask = this
553
+ mask.old_height = $('body')[0].style.height
554
+ mask.old_overflow = $('body')[0].style.overflow
555
+ $('body').css({height: '100%',overflow: 'hidden'})
556
+ } else {
557
+ $('body').children().not('.ajax-mask-public').hide()
558
+ }
556
559
  }
557
560
  },
558
561
  enableScroll: function(){
@@ -561,6 +564,7 @@ var initThinMan = function() {
561
564
  } else {
562
565
  $('body').children().not('#ajax-mask-public').show()
563
566
  }
567
+ delete thin_man.scroll_disabled
564
568
  },
565
569
  remove: function() {
566
570
  this.enableScroll()
@@ -1,3 +1,3 @@
1
1
  module ThinMan
2
- VERSION = "0.20.8"
2
+ VERSION = "0.20.9"
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.20.8
4
+ version: 0.20.9
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: 2019-02-11 00:00:00.000000000 Z
11
+ date: 2019-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails