hooch 0.16.6 → 0.16.7

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
  SHA256:
3
- metadata.gz: 41dd298dce03c60e49c0c5630c25ebee0db1b08a888cb04619f21e976280ff52
4
- data.tar.gz: c72d5a6daba6dd488cf23378d350154724fc78598f197936706fd6c5da63ef70
3
+ metadata.gz: eb4bea1e2538b99092bc8fd23bb46ec378702c6ba723ff477756935fd586458f
4
+ data.tar.gz: dd9c3066e2039d832789abe7d9e76c12fdfbb6b80125f7dfae4fea1131251754
5
5
  SHA512:
6
- metadata.gz: f6c38b5ef467f6f7fd7e9af133ea5b3bd79dcf36c32fb6178190c99f653731b31bfdc9c00fda41cc959155d46b74bb554e76cb3814630174270cf730032b99f3
7
- data.tar.gz: e95556c7acc55bf843b932eb5c5e2a23deec8b2f6d4e4b10a1b7133cf979ccef395a7ddbf68a631c10fc020f2a7d03e92bb2d3b2fc43147adf020cf3b3953e5d
6
+ metadata.gz: 044b0baa1fb876d06b72f089a87cf51ba5c22807ff8bb847178259aee53a0bad1dfbbee2d126cee63fc93cf6bbca2e4add560c5e3a4443e3a7dac132ecb85228
7
+ data.tar.gz: c991ebffe87a91ce8dd45066c1ad9de99562731a87c61815c008fa7459f535303630eb0ff4c94d6730971990886abc87d702f0aa6db878e631c2cb103181c526
@@ -268,10 +268,12 @@ var initHooch = function(){
268
268
  this.$modal_wrapper.trigger('modalClosed')
269
269
  },
270
270
  disableScroll: function(){
271
- var modal = this
272
- modal.old_height = $('body')[0].style.height
273
- modal.old_overflow = $('body')[0].style.overflow
274
- $('body').css({height: '100%',overflow: 'hidden'})
271
+ if($(window).width() >= 640){
272
+ var modal = this
273
+ modal.old_height = $('body')[0].style.height
274
+ modal.old_overflow = $('body')[0].style.overflow
275
+ $('body').css({height: '100%',overflow: 'hidden'})
276
+ }
275
277
  },
276
278
  enableScroll: function(){
277
279
  $('body').css({height: this.old_height, overflow: this.old_overflow})
@@ -1,3 +1,3 @@
1
1
  module Hooch
2
- VERSION = "0.16.6"
2
+ VERSION = "0.16.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hooch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.6
4
+ version: 0.16.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-13 00:00:00.000000000 Z
11
+ date: 2018-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails