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

Merge pull request #1995 from breidbart/patch-1

Include a fallback click event for loading more messages
parents 0b9c1247 c56d3a06
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,10 @@ Template.messageSearch.events
$(".search-messages-list \##{message_id} .message-cog-container").append el
dropDown = $(".search-messages-list \##{message_id} .message-dropdown")
dropDown.show()
'click .load-more a': (e, t) ->
t.limit.set(t.limit.get() + 20)
t.search()
'scroll .content': _.throttle (e, t) ->
if e.target.scrollTop >= e.target.scrollHeight - e.target.clientHeight
......
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