1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00

Merge branch 'projects-openfablab' of git.sleede.com:projets/fab-manager into projects-openfablab

This commit is contained in:
cyril 2016-05-02 16:21:26 +02:00
commit f84e633f7c

View File

@ -215,6 +215,7 @@ Application.Controllers.controller "ProjectsController", ["$scope", "$state", 'P
$scope.triggerSearch = -> $scope.triggerSearch = ->
currentPage = parseInt($location.$$search.page) || 1 currentPage = parseInt($location.$$search.page) || 1
if $scope.openlab.searchOverWholeNetwork is true if $scope.openlab.searchOverWholeNetwork is true
updateUrlParam('whole_network', 't')
$scope.projectsPagination = new paginationService.Instance(OpenlabProject, currentPage, PROJECTS_PER_PAGE, null, { }, loadMoreOpenlabCallback) $scope.projectsPagination = new paginationService.Instance(OpenlabProject, currentPage, PROJECTS_PER_PAGE, null, { }, loadMoreOpenlabCallback)
OpenlabProject.query { q: $scope.search.q, page: currentPage, per_page: PROJECTS_PER_PAGE }, (projectsPromise)-> OpenlabProject.query { q: $scope.search.q, page: currentPage, per_page: PROJECTS_PER_PAGE }, (projectsPromise)->
if projectsPromise.errors? if projectsPromise.errors?