diff -r fe5933b576a7 -r fd75c66c8e30 client/app/search/search_controller.js --- a/client/app/search/search_controller.js Thu Oct 01 18:00:33 2015 +0200 +++ b/client/app/search/search_controller.js Thu Oct 15 16:33:32 2015 +0200 @@ -9,11 +9,10 @@ controller: 'searchCtrl' }); }) - .controller('searchCtrl', function($scope, $location, $routeParams, searchApi, searchApi2, $modal, Slide){ + .controller('searchCtrl', function($scope, $location, $routeParams, searchApi, $modal, Slide){ $scope.q = $routeParams.q || ''; if ($scope.q !== ''){ $scope.results_ = searchApi.searchResource({q:$scope.q, of: 'json', synthesis: 'false', nresults:'10', callback: 'JSON_CALLBACK'}).getJsonp(); - $scope.results = searchApi2.searchResource({q:$scope.q, of: 'json', synthesis: 'false', nresults:'10', callback: 'JSON_CALLBACK'}).getJsonp(); } $scope.toggleModal = function (index) {