From f93fd2c31c402790cde366953e85dc166f8a5ee2 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Fri, 10 Oct 2014 21:27:24 +0200 Subject: [PATCH] Fixed post list presenter not updating queries --- public_html/js/Presenters/PostListPresenter.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public_html/js/Presenters/PostListPresenter.js b/public_html/js/Presenters/PostListPresenter.js index 021d5b98..b1f500a5 100644 --- a/public_html/js/Presenters/PostListPresenter.js +++ b/public_html/js/Presenters/PostListPresenter.js @@ -55,7 +55,9 @@ App.Presenters.PostListPresenter = function( jQuery(window).on('resize', windowResized); } - function reinit(params, loaded) { + function reinit(_params, loaded) { + params = _params; + params.query = params.query || {}; pagerPresenter.reinit({query: params.query}); loaded(); softRender();