Skip to content
Snippets Groups Projects
Commit 60ddd5ef authored by Jacob Schatz's avatar Jacob Schatz
Browse files

Merge branch 'fix-projects-ajax-pagination' into 'master'


Fix projects pagination via ajax

Basically was not implemented. Finishes our projects list refactoring. 

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>

See merge request !3155
parents 491ac7ce 83593e46
No related branches found
No related tags found
1 merge request!3155Fix projects pagination via ajax
Pipeline #
Loading
@@ -2,6 +2,7 @@
Loading
@@ -2,6 +2,7 @@
init: -> init: ->
$(".projects-list-filter").off('keyup') $(".projects-list-filter").off('keyup')
this.initSearch() this.initSearch()
this.initPagination()
   
initSearch: -> initSearch: ->
@timer = null @timer = null
Loading
@@ -29,3 +30,8 @@
Loading
@@ -29,3 +30,8 @@
# Change url so if user reload a page - search results are saved # Change url so if user reload a page - search results are saved
history.replaceState {page: project_filter_url}, document.title, project_filter_url history.replaceState {page: project_filter_url}, document.title, project_filter_url
dataType: "json" dataType: "json"
initPagination: ->
$('.projects-list-holder .pagination').on('ajax:success', (e, data) ->
$('.projects-list-holder').replaceWith(data.html)
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment