corn_starch 1.3.8 → 1.3.9
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: aaa80a71ec337f8de26b591036c92cacf7ded00c
|
4
|
+
data.tar.gz: d391937c31cf1d42fb2e1d9c555a7010f5c60949
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22a5f564b3043503e1784c15340ecfdcd5bf66b67312aa34edd9a453d1acdebd5d4152d990052c31db918fa84822448d5669488304819e4bb026771789ae8c5b
|
7
|
+
data.tar.gz: 33b3b7983800b45cc591f093884e65e606db1b27b6a00c2be8cc19aaf8abbf3805281d423520abaac4561b47489aaf6c53cdb8ef6d58439965ed7d2d79cbf09c
|
@@ -15,14 +15,15 @@ window.infiniscroll = (container) ->
|
|
15
15
|
next = c.attr 'infiniscroll-next'
|
16
16
|
|
17
17
|
# Construct URL
|
18
|
-
|
18
|
+
args = (args == '') ? '?' : "#{args}&"
|
19
|
+
args = "#{args}current_page=#{next}"
|
20
|
+
full_path = path + args
|
21
|
+
|
22
|
+
alert('PATH : [' + full_path + ']')
|
19
23
|
|
20
24
|
# Fetch Data
|
21
25
|
$.getJSON full_path, (data) ->
|
22
26
|
|
23
|
-
# DEBUG
|
24
|
-
alert data
|
25
|
-
|
26
27
|
# Update Next
|
27
28
|
c.attr 'infiniscroll-next', data['next']
|
28
29
|
|
data/lib/corn_starch/version.rb
CHANGED