mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-17 16:46:06 +10:00
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: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> See merge request !3155
This commit is contained in:
@@ -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').on('ajax:success', (e, data) ->
|
||||
$('.projects-list-holder').replaceWith(data.html)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user