virgo 0.3.2 → 0.3.3
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/virgo/page_modules.coffee +11 -6
- data/lib/virgo/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: 14fa69989115c154fcfb24d204f64bf8558f71f1
|
4
|
+
data.tar.gz: f2a2e1e456a3926ba1daffc7cdd2f07629079f59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04130996d4c254973e5494f2b5b8d4addab4afb72653afb4fea0e99fcb741ae55f83f2460d5c701a0462f71340151ac3fa9d2af5277f737a6dc50ea15e077bc6
|
7
|
+
data.tar.gz: c3987b29653e0f3afc18017cfa276dfbc11316cc10a0ba72bbae8ce26a9dd59f34414c0005a7994116827f523045128e76aee9a15306c3bf20ce8ad5528eb182
|
@@ -1,3 +1,5 @@
|
|
1
|
+
window.virgo_page_modules ?= {}
|
2
|
+
|
1
3
|
class PostThumbs
|
2
4
|
constructor: ->
|
3
5
|
@bind_events()
|
@@ -35,9 +37,10 @@ class PostThumbs
|
|
35
37
|
raise_thumb_overlay: (thumb) =>
|
36
38
|
thumb.addClass('expanded')
|
37
39
|
|
38
|
-
|
39
40
|
$ -> new PostThumbs if $('.post-thumb-box').length
|
40
41
|
|
42
|
+
window.virgo_page_modules.PostThumbs = PostThumbs
|
43
|
+
|
41
44
|
class PopularPosts
|
42
45
|
constructor: ->
|
43
46
|
@bind_events()
|
@@ -76,10 +79,7 @@ class PopularPosts
|
|
76
79
|
$.get $box.attr("data-uri"), (response) =>
|
77
80
|
$box.html($(response.html).html())
|
78
81
|
|
79
|
-
|
80
|
-
|
81
|
-
$ -> new PopularPosts if $('.popular-post').length
|
82
|
-
|
82
|
+
window.virgo_page_modules.PopularPosts = PopularPosts
|
83
83
|
|
84
84
|
class LatestPosts
|
85
85
|
constructor: ->
|
@@ -101,6 +101,8 @@ class LatestPosts
|
|
101
101
|
|
102
102
|
$ -> new LatestPosts if $('.latest-posts-box').length
|
103
103
|
|
104
|
+
window.virgo_page_modules.LatestPosts = LatestPosts
|
105
|
+
|
104
106
|
class ListSignup
|
105
107
|
constructor: ->
|
106
108
|
$('body').on 'submit', '#list-signup-form, #header-signup-form, #ouibounce-list-signup-form', @submit
|
@@ -144,9 +146,10 @@ class ListSignup
|
|
144
146
|
else
|
145
147
|
$wrap.find('.list-signup-message.error').html(response.message).show()
|
146
148
|
|
147
|
-
|
148
149
|
$ -> new ListSignup if $('.list-signup').length
|
149
150
|
|
151
|
+
window.virgo_page_modules.ListSignup = ListSignup
|
152
|
+
|
150
153
|
|
151
154
|
class ColumnFocus
|
152
155
|
constructor: ->
|
@@ -154,3 +157,5 @@ class ColumnFocus
|
|
154
157
|
window.location = $(this).attr('data-uri')
|
155
158
|
|
156
159
|
$ -> new ColumnFocus if $('.column-box').length
|
160
|
+
|
161
|
+
window.virgo_page_modules.ColumnFocus = ColumnFocus
|
data/lib/virgo/version.rb
CHANGED