Commit 21042890 by Ibrahim Awwal

Fix the loading indicator not appearing on switching sort key/topic.

parent 5ccac9ff
...@@ -292,7 +292,7 @@ if Backbone? ...@@ -292,7 +292,7 @@ if Backbone?
retrieveFirstPage: (event)-> retrieveFirstPage: (event)->
@collection.current_page = 0 @collection.current_page = 0
@collection.pages = 0 @collection.pages = 1
@collection.reset() @collection.reset()
@loadMorePages(event) @loadMorePages(event)
...@@ -323,8 +323,6 @@ if Backbone? ...@@ -323,8 +323,6 @@ if Backbone?
@current_search = text @current_search = text
url = DiscussionUtil.urlFor("search") url = DiscussionUtil.urlFor("search")
#TODO: This might be better done by setting discussion.current_page=0 and calling discussion.loadMorePages #TODO: This might be better done by setting discussion.current_page=0 and calling discussion.loadMorePages
# Mainly because this currently does not reset any pagination variables which could cause problems.
# This doesn't use pagination either.
DiscussionUtil.safeAjax DiscussionUtil.safeAjax
$elem: @$(".post-search-field") $elem: @$(".post-search-field")
data: { text: text } data: { text: text }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment