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: f477bb5b09f5f81a4476bc4e485f9aa428d01d20
4
- data.tar.gz: 825f0ee6855177910f7170e6bce3a42255dbecc3
3
+ metadata.gz: aaa80a71ec337f8de26b591036c92cacf7ded00c
4
+ data.tar.gz: d391937c31cf1d42fb2e1d9c555a7010f5c60949
5
5
  SHA512:
6
- metadata.gz: be980d32c101be14fcf8197a882bb246f35e9f9c0b115858dc67e1b43a1fcf2ac94efb110d36763a82dc25900b487fa3642cf7462e4ee817ba25c5c138e270d8
7
- data.tar.gz: a80ccf9a609ecfb93b4251c4c0354b71b8b8361e9e015327d5a656ed6845b30c2f57bd7cb05f9154aad5757029ac428ecbd67271326e63861e60175ad45d7905
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
- full_path = "#{path}?#{args}&current_page=#{next}"
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
 
@@ -1,3 +1,3 @@
1
1
  module CornStarch
2
- VERSION = '1.3.8'
2
+ VERSION = '1.3.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: corn_starch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.8
4
+ version: 1.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eresse