hooch 0.13.1 → 0.13.2
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/hooch.js +3 -4
- data/lib/hooch/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c453d5f21e48c17056e5c3016fc9439c447ee9d3
|
4
|
+
data.tar.gz: 6b52a1b1d79458fbb08146cce8613380edffdf5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d452f69a39db675e927a9d1d88f391fb2e0a71dc7baaab14a012732dc89c2cb73ca9cec265e0eef3f842f18a88428efbe1964b8c4cdd339590bda5ac0706a7ee
|
7
|
+
data.tar.gz: 4221a4d84e1a2489916155acb349d198e67e2fbe2930c25c9c677062f8daa1e346ee81e73d2e3ae586711ac0045f323e99c22087fad59e80ff352441e255577e
|
@@ -20,19 +20,18 @@ var initHooch = function(){
|
|
20
20
|
}),
|
21
21
|
HideShow: Class.extend({
|
22
22
|
init: function($trigger){
|
23
|
+
this.$trigger = $trigger
|
23
24
|
this.$target = $($trigger.data('target'))
|
24
25
|
var trigger = this
|
25
26
|
if($trigger.data('any-click-closes')){
|
26
|
-
$(window).on('click',function(){
|
27
|
-
if(trigger.$target.is(':visible')){
|
27
|
+
$(window).on('click',function(e){
|
28
|
+
if(trigger.$target.is(':visible') && ($(e.target).data('target') != trigger.$trigger.data('target'))){
|
28
29
|
trigger.$target.hide()
|
29
30
|
}
|
30
31
|
})
|
31
32
|
}
|
32
33
|
$trigger.on('click', function(e){
|
33
34
|
trigger.$target.toggle()
|
34
|
-
e.preventDefault()
|
35
|
-
return false
|
36
35
|
})
|
37
36
|
}
|
38
37
|
}),
|
data/lib/hooch/version.rb
CHANGED