ama_layout 2.1.2 → 2.1.3

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: 172e2de2bbdce0790ba8ccaaebf31bc1511a7658
4
- data.tar.gz: 197d53549f853711f1e57b8bf21ba6ad5c5256d8
3
+ metadata.gz: f36ee0b7d4f4f82c3c8b6fc452267bc68d9cb238
4
+ data.tar.gz: 4135633c27d206600e16e76fc35b4e700e9a4eab
5
5
  SHA512:
6
- metadata.gz: 0d310f0f23073d525ade2f519d929f2dc88ed375402b68e3b30d4166c38e96ea71495d30d5e282e95f1a2d64c73127e3c1e5e32092d0d72a15a7e16cb760a3ae
7
- data.tar.gz: 06f1fdf58bbb0cf9a0d45caf403febc35796aeed4a0e2061f7bc4bb23184edb8599f0931e9b205336c4e9d57b244edcc6bae61bcf686ad94eea4706c2a7f1f29
6
+ metadata.gz: f5ff62ce1a34a0254a1663c652b2349b89a676721153db7a30c41de9b6222e39a9c5ffe937484391791c41045b8bf1658c2f193baa5e1fb44eeee4b4869ff886
7
+ data.tar.gz: 892e96c6fad99b96a2a066e15bc68483122f8b3ad71a6c3e70bc7bbf80c3ca97c76ecd05706ebf9c17252f9e24765073bd9ec38e427290462670a7abffad8e1d
@@ -1,19 +1,29 @@
1
1
  $(window).bind
2
2
  load: ->
3
3
  adjustFooter()
4
- accordionAdjust()
4
+ clickChecker()
5
5
  resize: ->
6
6
  adjustFooter()
7
- accordionAdjust()
7
+ clickChecker()
8
8
 
9
9
  adjustFooter = ->
10
10
  $("footer").css({ 'margin-top': calcHeight() + 'px' })
11
11
 
12
- accordionAdjust = ->
13
- $("a.asset-link.clearfix").click ->
14
- setTimeout ->
15
- adjustFooter()
16
- , 1
12
+ clickChecker = ->
13
+ checkClicks(".close-button", 250)
14
+ checkClicks("a.asset-link.clearfix", 1)
15
+
16
+ checkClicks = (tag_to_check, delay) ->
17
+ $(tag_to_check).click ->
18
+ i = delay
19
+ while i >= 0
20
+ readjust(i)
21
+ i--
22
+
23
+ readjust = (delay) ->
24
+ setTimeout ->
25
+ adjustFooter()
26
+ , delay
17
27
 
18
28
  calcHeight = ->
19
29
  footer = $("footer")
@@ -1,3 +1,3 @@
1
1
  module AmaLayout
2
- VERSION = "2.1.2"
2
+ VERSION = "2.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ama_layout
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael van den Beuken
@@ -336,7 +336,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
336
336
  version: '0'
337
337
  requirements: []
338
338
  rubyforge_project:
339
- rubygems_version: 2.4.5
339
+ rubygems_version: 2.4.5.1
340
340
  signing_key:
341
341
  specification_version: 4
342
342
  summary: ".ama.ab.ca site layouts"