hooch 0.14.5 → 0.14.6
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 +14 -1
- data/lib/hooch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9736ab492a88b15f47a3289383515d6089eb72d2
|
|
4
|
+
data.tar.gz: 06737c9cf83160f3cea669c2f16dc55f7dede0f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 57b2018f2882fa6c57ad56ecb7d3cd44dc01fc306581fd0a65019f670385349924d07d80c585f22bc941cbc465f4bef70b26154f5edcb92db93cb43c9ad31d63
|
|
7
|
+
data.tar.gz: 491402c667f5c85f0fdca3de4800972545991cdcba62b52667633a2815be15aa08815820d7e738fd960a4e99d5b5b1a80b07e19c026ac8b235097b4d17a7be13
|
|
@@ -1505,6 +1505,19 @@ var initHooch = function(){
|
|
|
1505
1505
|
return false;
|
|
1506
1506
|
}
|
|
1507
1507
|
},
|
|
1508
|
+
Atarget: Class.extend({
|
|
1509
|
+
init: function($atarget){
|
|
1510
|
+
$atarget.on('click', function(e) {
|
|
1511
|
+
e.preventDefault();
|
|
1512
|
+
var whichAnchor = $(this).attr('href');
|
|
1513
|
+
if($(whichAnchor).length) {
|
|
1514
|
+
$('html, body').animate({
|
|
1515
|
+
scrollTop: $(whichAnchor).offset().top -90
|
|
1516
|
+
}, 1000);
|
|
1517
|
+
}
|
|
1518
|
+
});
|
|
1519
|
+
}
|
|
1520
|
+
}),
|
|
1508
1521
|
BindKey: Class.extend({
|
|
1509
1522
|
init: function($bound_element){
|
|
1510
1523
|
this.$bound_element = $bound_element
|
|
@@ -1759,7 +1772,7 @@ var initHooch = function(){
|
|
|
1759
1772
|
['hover_overflow','hidey_button','hide-show','submit-proxy','click-proxy','field-filler','revealer',
|
|
1760
1773
|
'checkbox-hidden-proxy','prevent-double-submit','prevent-double-link-click', 'tab-group',
|
|
1761
1774
|
'hover-reveal', 'emptier', 'remover', 'checkbox-proxy', 'fake-checkbox', 'fake-select', 'select-action-changer',
|
|
1762
|
-
'sorter','bind-key','modal-trigger','history-pusher', 'history-replacer', 'link'],'hooch');
|
|
1775
|
+
'sorter','bind-key','modal-trigger','history-pusher', 'history-replacer', 'link', 'atarget'],'hooch');
|
|
1763
1776
|
window.any_time_manager.load();
|
|
1764
1777
|
};
|
|
1765
1778
|
hooch.pauseEvent = function(e){
|
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.14.
|
|
4
|
+
version: 0.14.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eric Draut
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-03-
|
|
11
|
+
date: 2017-03-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|