hooch 0.16.3 → 0.16.4
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 +4 -4
- data/app/assets/javascripts/hooch.js +8 -1
- data/lib/hooch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a9c9a725617646f73c6e855f04f43b0ef81243d67d00db6480319e3456dd8400
|
|
4
|
+
data.tar.gz: 9d60f3cfd5ef22e8d5a0636ab809854d4fcd7ee678cc488ecf36885afc485bce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
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.
|
|
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-
|
|
11
|
+
date: 2018-11-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|