tramway-core 1.7.3 → 1.7.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: 97cfa339940bd9067cda8cf886cfd29a82a0debb02cc8132062ba1b53cd49cfb
4
- data.tar.gz: 17d8068d67d5030710033ce569a9baceaa9da76e230fdcc4504ceb1000f5927d
3
+ metadata.gz: a8b353c62d65a678b910042bcd08daaaae843d70952726dbb6a534a2705fe68c
4
+ data.tar.gz: 9fe906da35ef88465e63885f63a67214b638523f5ed9e754fc33d97649d067b5
5
5
  SHA512:
6
- metadata.gz: 4a5c9036fc2339564f53702368c4c922e87352729a7e8b3e4351c09cb93fbdfe3dad9a5216fc16f24320ddda9e5891493cc32816a3fe8b2dbe33edfa4590e062
7
- data.tar.gz: '083b6dc46530562cbd5e1d8ece27dbee00de52da383666308c506554a54ce13939b35d18c13dc72bfcd173a6368f25958f7c3270611eb501c12811f58c22c7bb'
6
+ metadata.gz: 972d0805ce45e9b27a4ab5f988f1b726b1deba53061a2b38b24e9d0ed05d536d7effc2be8f1420c9a374f519c3a8479828d0a85c6f473476a7fd5bba32eb8863
7
+ data.tar.gz: 7fd9a173da1c15b3759abe8702c2bcda0eafdbbd24467f23016b27c93b1a8c4500928276138af597e793ce627cf4b4349f449cb470be93adc0bfdbde885888a9
@@ -12,4 +12,11 @@ $(document).ready ->
12
12
  })
13
13
 
14
14
  $('.link').click ->
15
- location.href = $(this).data('href')
15
+ href = $(this).data('href')
16
+ if href
17
+ location.href = href
18
+ else
19
+ anchor = $(this).data('anchor')
20
+ console.log(anchor)
21
+ $(window).scrollTop $(anchor).offset().top
22
+
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Core
3
- VERSION = '1.7.3'
3
+ VERSION = '1.7.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.3
4
+ version: 1.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-15 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: reform-rails