Commit ec52d5b1 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix projects pagination via ajax

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 491ac7ce
......@@ -2,6 +2,7 @@
init: ->
$(".projects-list-filter").off('keyup')
this.initSearch()
this.initPagination()
initSearch: ->
@timer = null
......@@ -29,3 +30,8 @@
# Change url so if user reload a page - search results are saved
history.replaceState {page: project_filter_url}, document.title, project_filter_url
dataType: "json"
initPagination: ->
$('.projects-list-holder .pagination').bind('ajax:success', (e, data) ->
$('.projects-list-holder').replaceWith(data.html)
)
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