corn_starch 1.7.17 → 1.7.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/corn_starch/infiniscroll_helper.rb +3 -1
- 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: e94b84d9632df22c33877b7e40ce8e289b7da0df
|
4
|
+
data.tar.gz: 30d3002f0fe8233ca741e2aa00696bc7c0f89274
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d28e6490f83dbfc3623736afc3c1e220389acef4bd3a739bd9e5fa6d4fe5c3c1e81ed2c07ddf4f989f4f5aab0a85d0b5a10ea4bc59cbf4b8819e4900f9ff327
|
7
|
+
data.tar.gz: 8ac848352b9fe806e8b6d5b2914800a33ebd7f5b0c266dc67db20169010961aefc79ac04e998227beeb190fc88119823589f46eff34d99b3e0eb1696d59944cb
|
@@ -8,7 +8,7 @@ module CornStarch
|
|
8
8
|
module InfiniscrollHelper
|
9
9
|
|
10
10
|
# InfiniScroll Container
|
11
|
-
def infiniscroll_container id, target, n = 1, &block
|
11
|
+
def infiniscroll_container id, target, extra_args = nil, n = 1, &block
|
12
12
|
|
13
13
|
# Prep Args
|
14
14
|
first = true
|
@@ -26,6 +26,8 @@ module CornStarch
|
|
26
26
|
first = false
|
27
27
|
end
|
28
28
|
|
29
|
+
args = args + (first ? '?' : '&') + extra_args if extra_args
|
30
|
+
|
29
31
|
# Produce Container
|
30
32
|
div_tag id: id, class: 'infiniscroll-container', 'infiniscroll-trgt' => target, 'infiniscroll-args' => args, 'infiniscroll-next' => n, 'infiniscroll-margin' => CORNSTARCH_CONF[:infiniscroll][:margin], &block
|
31
33
|
end
|
data/lib/corn_starch/version.rb
CHANGED