corn_starch 1.3.34 → 1.3.35
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/corn_starch/infiniscroll.js.coffee +37 -37
- data/lib/corn_starch/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: 0d68b505207fa6e24b35f0ce126e1e35725b7d70
|
4
|
+
data.tar.gz: 799a5e1515eed000e492141d93b471f8e114e104
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a50403bc95e5f5fd8ea966a64e38663783dfa7d3d2bf5af8cc5f7ec093a11bdc0e9fd8ec89619824af44b14e26c752ca2088fc0d7599265db06e3a99e686de9
|
7
|
+
data.tar.gz: 17684578899974b2ec298a17befe6474598dca7682da6dbe296458a48fcea8bf35a7cf8b1d598ef8e4ebe23703421fe60baf1b7860d80deeadfe8daedc12ec3f
|
@@ -3,43 +3,6 @@
|
|
3
3
|
|
4
4
|
# InfiniScroll JS
|
5
5
|
|
6
|
-
# Initialize InfiniScroll for the Page
|
7
|
-
$(document).on 'page:load', infiniscroll_init
|
8
|
-
$(document).ready infiniscroll_init
|
9
|
-
|
10
|
-
# InfiniScroll Init
|
11
|
-
window.infiniscroll_init = () ->
|
12
|
-
|
13
|
-
# Acquire Container
|
14
|
-
infiniscroll_container = $('.infiniscroll-container')
|
15
|
-
|
16
|
-
# Check Presence
|
17
|
-
return if infiniscroll_container.length == 0
|
18
|
-
infiniscroll_container = infiniscroll_container[0]
|
19
|
-
|
20
|
-
# Check Scroll
|
21
|
-
if ($(window).scrollTop() + $(window).height()) >= ($(document).height() - infiniscroll_container.getAttribute('infiniscroll-margin'))
|
22
|
-
infiniscroll infiniscroll_container.id
|
23
|
-
|
24
|
-
# Handle Scroll Events
|
25
|
-
$(window).unbind('scroll')
|
26
|
-
$(window).scroll infiniscroll_handler
|
27
|
-
|
28
|
-
# Scroll Handler
|
29
|
-
window.infiniscroll_handler = () ->
|
30
|
-
|
31
|
-
# Acquire Container
|
32
|
-
infiniscroll_container = $('.infiniscroll-container')[0]
|
33
|
-
|
34
|
-
# Check Position
|
35
|
-
if ($(window).scrollTop() + $(window).height()) >= ($(document).height() - infiniscroll_container.getAttribute('infiniscroll-margin'))
|
36
|
-
|
37
|
-
# Drop Scroll Handler
|
38
|
-
$(window).unbind('scroll')
|
39
|
-
|
40
|
-
# Scroll it, bitch !
|
41
|
-
infiniscroll infiniscroll_container.id
|
42
|
-
|
43
6
|
# InfiniScroll
|
44
7
|
window.infiniscroll = (container) ->
|
45
8
|
|
@@ -83,3 +46,40 @@ window.infiniscroll = (container) ->
|
|
83
46
|
# Re-Attach Scroll Handler
|
84
47
|
$(window).unbind('scroll')
|
85
48
|
$(window).scroll infiniscroll_handler
|
49
|
+
|
50
|
+
# Scroll Handler
|
51
|
+
window.infiniscroll_handler = () ->
|
52
|
+
|
53
|
+
# Acquire Container
|
54
|
+
infiniscroll_container = $('.infiniscroll-container')[0]
|
55
|
+
|
56
|
+
# Check Position
|
57
|
+
if ($(window).scrollTop() + $(window).height()) >= ($(document).height() - infiniscroll_container.getAttribute('infiniscroll-margin'))
|
58
|
+
|
59
|
+
# Drop Scroll Handler
|
60
|
+
$(window).unbind('scroll')
|
61
|
+
|
62
|
+
# Scroll it, bitch !
|
63
|
+
infiniscroll infiniscroll_container.id
|
64
|
+
|
65
|
+
# InfiniScroll Init
|
66
|
+
window.infiniscroll_init = () ->
|
67
|
+
|
68
|
+
# Acquire Container
|
69
|
+
infiniscroll_container = $('.infiniscroll-container')
|
70
|
+
|
71
|
+
# Check Presence
|
72
|
+
return if infiniscroll_container.length == 0
|
73
|
+
infiniscroll_container = infiniscroll_container[0]
|
74
|
+
|
75
|
+
# Check Scroll
|
76
|
+
if ($(window).scrollTop() + $(window).height()) >= ($(document).height() - infiniscroll_container.getAttribute('infiniscroll-margin'))
|
77
|
+
infiniscroll infiniscroll_container.id
|
78
|
+
|
79
|
+
# Handle Scroll Events
|
80
|
+
$(window).unbind('scroll')
|
81
|
+
$(window).scroll infiniscroll_handler
|
82
|
+
|
83
|
+
# Initialize InfiniScroll for the Page
|
84
|
+
$(document).on 'page:load', infiniscroll_init
|
85
|
+
$(document).ready infiniscroll_init
|
data/lib/corn_starch/version.rb
CHANGED