--- 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) {