fix unused var
authorrougeronj
Thu, 15 Oct 2015 16:33:32 +0200
changeset 188 fd75c66c8e30
parent 187 fe5933b576a7
child 189 0ffed992c271
fix unused var
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) {