corn_starch 1.3.32 → 1.3.33
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23d96c93f17bf85dbd9bec536cd2a56d71804e52
|
4
|
+
data.tar.gz: aed41a2a3bf295de8fcc7d0f5428ff3eebcc69a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3855216869080289ddbe02b41768fdf06c36b706ccc31273c97d721149e41737a6d7a8a05d21d0d7859dff8d23280c0671f22c200bb2a3b343b4a3e988d2dc3d
|
7
|
+
data.tar.gz: 1de0b751eed2213a5de859a3312f42acde315210202a8e864730732f1fe17e88f305eae702dd022d0146cc3c7e4812742cd8ceb02da954e297962ddee053566b
|
@@ -13,6 +13,7 @@ $(document).on 'page:load', ->
|
|
13
13
|
return if infiniscroll_container.length == 0
|
14
14
|
infiniscroll_container = infiniscroll_container[0]
|
15
15
|
|
16
|
+
# Check Scroll
|
16
17
|
if ($(window).scrollTop() + $(window).height()) >= ($(document).height() - infiniscroll_container.getAttribute('infiniscroll-margin'))
|
17
18
|
infiniscroll infiniscroll_container.id
|
18
19
|
|
@@ -68,6 +69,13 @@ window.infiniscroll = (container) ->
|
|
68
69
|
# Append Content
|
69
70
|
$("##{container}").append data['content']
|
70
71
|
|
71
|
-
#
|
72
|
-
$(window).
|
73
|
-
|
72
|
+
# Check Scroll
|
73
|
+
if ($(window).scrollTop() + $(window).height()) >= ($(document).height() - c.getAttribute('infiniscroll-margin'))
|
74
|
+
|
75
|
+
# Scroll
|
76
|
+
infiniscroll c.id
|
77
|
+
else
|
78
|
+
|
79
|
+
# Re-Attach Scroll Handler
|
80
|
+
$(window).unbind('scroll')
|
81
|
+
$(window).scroll infiniscroll_handler
|
data/lib/corn_starch/version.rb
CHANGED