hooch 0.14.5 → 0.14.6

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
  SHA1:
3
- metadata.gz: 8618ce34431cc8dfd8b7ed78439910db8dc4ade0
4
- data.tar.gz: f49e99d63b9e716903f650229b3589f90ea6fa96
3
+ metadata.gz: 9736ab492a88b15f47a3289383515d6089eb72d2
4
+ data.tar.gz: 06737c9cf83160f3cea669c2f16dc55f7dede0f8
5
5
  SHA512:
6
- metadata.gz: 6ea9b8a25e0420fd9d76540f032b5eba67030cdac8272cf0eb3cf8962120a3558318eb03d25299ed9c70d547d9c53eee59da9b8980e3c8c385e9902721994f5f
7
- data.tar.gz: 876f9679ae8437dead0f1ce0a9b84a135bd847b92cd832b97836903f43d677f6162f5f1908eb3ad8cc6215567e1502048c6e24ee5b378b4edaf8231bda08c7b9
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){
@@ -1,3 +1,3 @@
1
1
  module Hooch
2
- VERSION = "0.14.5"
2
+ VERSION = "0.14.6"
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.14.5
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-10 00:00:00.000000000 Z
11
+ date: 2017-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails