hooch 0.16.3 → 0.16.4

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: 3ee565d3bef2b28344b0aae1ac36c836d20c50c27ce09f8d079201fb405669c8
4
- data.tar.gz: 5f2bbfb2aa912095e264dc5a46591d2e2be9c313be3853ac552bb5b746a1ee15
3
+ metadata.gz: a9c9a725617646f73c6e855f04f43b0ef81243d67d00db6480319e3456dd8400
4
+ data.tar.gz: 9d60f3cfd5ef22e8d5a0636ab809854d4fcd7ee678cc488ecf36885afc485bce
5
5
  SHA512:
6
- metadata.gz: 9aa606bb096c87b1a3a118db223811b619e8ecaf479ebce15c809c17e22e24c4036371f530476dc5b97c37b43b46cd5e15ff9f9d1eda25a713a4b6bfd451470d
7
- data.tar.gz: 0cf2cce7c955617d15c044aea314bb7d0a3651dfc65a2b97c8efcde25025bfa510d89d21f7907d5fb724126b7ac8366ae5eb9e60e8289cee854a16d4efe8c612
6
+ metadata.gz: 05e2b10eb8f2343540e1053bbe07373cbb0410f854cd61b8330b90636a7309d385c3c2c2cc4519706536fce946ba63b939ef6276d722ceab953ec9eac4afb187
7
+ data.tar.gz: 9090f0b5930654d9c868e54b4c3676ac013c1d664c7bcc96cf16682a47d139098fd67424f1519e64b4425a7e9dbbb57d46c8edb257775bace6a63cc72151f9e8
@@ -233,7 +233,7 @@ var initHooch = function(){
233
233
  this.attachDismisser()
234
234
  this.disableScroll()
235
235
  this.$modal_content.trigger('modalInitialized')
236
- this.$modal_mask.show()
236
+ this.showModal()
237
237
  hooch.current_modal = this
238
238
  this.$modal_content.trigger('modalVisible')
239
239
  },
@@ -251,9 +251,16 @@ var initHooch = function(){
251
251
  },
252
252
  attachDismisser: function(){
253
253
  if(this.dismissable){
254
+ this.$dismisser.show()
254
255
  this.$modal_wrapper.append(this.$dismisser)
256
+ } else {
257
+ this.$dismisser.hide()
255
258
  }
256
259
  },
260
+ showModal: function(){
261
+ this.$modal_mask.css({top: $(window).scrollTop()})
262
+ this.$modal_mask.show()
263
+ },
257
264
  close: function(){
258
265
  this.$modal_mask.hide()
259
266
  this.$modal_content.hide()
data/lib/hooch/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hooch
2
- VERSION = "0.16.3"
2
+ VERSION = "0.16.4"
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.3
4
+ version: 0.16.4
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-11-02 00:00:00.000000000 Z
11
+ date: 2018-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails