From 4afb96875084f22ac2ed3ff58b2014f42387c83b Mon Sep 17 00:00:00 2001 From: Nicolas Florentin Date: Mon, 2 May 2016 12:48:26 +0200 Subject: [PATCH] fix select option for machines themes and materials when you get back to page and want your history back --- app/assets/javascripts/controllers/projects.coffee.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/controllers/projects.coffee.erb b/app/assets/javascripts/controllers/projects.coffee.erb index 2c7da19aa..52ac80a62 100644 --- a/app/assets/javascripts/controllers/projects.coffee.erb +++ b/app/assets/javascripts/controllers/projects.coffee.erb @@ -153,7 +153,7 @@ Application.Controllers.controller "ProjectsController", ["$scope", "$state", 'P PROJECTS_PER_PAGE = 12 ### PUBLIC SCOPE ### - $scope.search = { q: ($location.$$search.q || ""), from: ($location.$$search.from || undefined), machine_id: ($location.$$search.machine_id || undefined), component_id: ($location.$$search.component_id || undefined), theme_id: ($location.$$search.theme_id || undefined) } + $scope.search = { q: ($location.$$search.q || ""), from: ($location.$$search.from || undefined), machine_id: (parseInt($location.$$search.machine_id) || undefined), component_id: (parseInt($location.$$search.component_id) || undefined), theme_id: (parseInt($location.$$search.theme_id) || undefined) } ## list of projects to display $scope.projects = []