fixed unworking infinite scroll
This commit is contained in:
parent
48bc4fc214
commit
ece9f50fb1
11 changed files with 180 additions and 66 deletions
|
@ -3,7 +3,7 @@
|
|||
%small= "( #{current_user.projects.count} )"
|
||||
%hr
|
||||
- unless @projects.empty?
|
||||
%div.tile= render "tile"
|
||||
%div.content_list= render "tile"
|
||||
|
||||
-# If projects requris paging
|
||||
-# We add ajax loader & init script
|
||||
|
@ -13,7 +13,7 @@
|
|||
|
||||
:javascript
|
||||
$(function(){
|
||||
ProjectsList.init(16);
|
||||
Pager.init(#{@limit});
|
||||
});
|
||||
- else
|
||||
%h2 Nothing here
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
:plain
|
||||
ProjectsList.append(#{@projects.count}, "#{escape_javascript(render(:partial => 'projects/tile'))}");
|
||||
Pager.append(#{@projects.count}, "#{escape_javascript(render(:partial => 'projects/tile'))}");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue