Skip to content
Snippets Groups Projects
Commit 37abce5c authored by Gabriel Engel's avatar Gabriel Engel
Browse files

fix load more

parent 3b5af150
No related branches found
No related tags found
No related merge requests found
...@@ -12,15 +12,10 @@ ...@@ -12,15 +12,10 @@
return histories[rid] return histories[rid]
initRoom = (rid, from=new Date) ->
room = getRoom rid
room.from = from
getMore = (rid, limit=defaultLimit) -> getMore = (rid, limit=defaultLimit) ->
room = getRoom rid room = getRoom rid
if room.hasMore.curValue isnt true or not room.from? if room.hasMore.curValue isnt true
return return
room.isLoading.set true room.isLoading.set true
...@@ -56,7 +51,6 @@ ...@@ -56,7 +51,6 @@
return room.isLoading.get() return room.isLoading.get()
initRoom: initRoom
getMore: getMore getMore: getMore
hasMore: hasMore hasMore: hasMore
isLoading: isLoading isLoading: isLoading
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
subscription = Meteor.subscribe('subscription') subscription = Meteor.subscribe('subscription')
return subscription return subscription
expireRoom = (rid) -> close = (rid) ->
if openedRooms[rid] if openedRooms[rid]
if openedRooms[rid].sub? if openedRooms[rid].sub?
for sub in openedRooms[rid].sub for sub in openedRooms[rid].sub
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
for rid of openedRooms for rid of openedRooms
if rid isnt except and not openedRooms[rid].timeout? if rid isnt except and not openedRooms[rid].timeout?
openedRooms[rid].timeout = setTimeout expireRoom, defaultTime, rid openedRooms[rid].timeout = setTimeout close, defaultTime, rid
open = (rid) -> open = (rid) ->
if not openedRooms[rid]? if not openedRooms[rid]?
...@@ -62,5 +62,5 @@ ...@@ -62,5 +62,5 @@
} }
open: open open: open
close: expireRoom close: close
init: init init: init
...@@ -1789,7 +1789,7 @@ a.github-fork { ...@@ -1789,7 +1789,7 @@ a.github-fork {
.date { .date {
text-align: center; text-align: center;
position: relative; position: relative;
margin-top: 12px; margin: 15px 20px;
&:before { &:before {
content: " "; content: " ";
height: 1px; height: 1px;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment