# HG changeset patch
# User rougeronj
# Date 1428505344 -7200
# Node ID 6a5e84bf859ca33d71b3c42444fc1f9a0c12eec5
# Parent ef4d8ed6eef23c450fc19b2802d067087be3ed22
Only able to add slide to the child books - fix bug wich appeard during the split of the resource API (searchAPI -> ammicoAPI & searchAPI)
diff -r ef4d8ed6eef2 -r 6a5e84bf859c client/app/search/modal.html
--- a/client/app/search/modal.html Wed Apr 08 17:00:43 2015 +0200
+++ b/client/app/search/modal.html Wed Apr 08 17:02:24 2015 +0200
@@ -4,7 +4,7 @@
- -
+
-
diff -r ef4d8ed6eef2 -r 6a5e84bf859c client/app/search/search_controller.js
--- a/client/app/search/search_controller.js Wed Apr 08 17:00:43 2015 +0200
+++ b/client/app/search/search_controller.js Wed Apr 08 17:02:24 2015 +0200
@@ -9,7 +9,7 @@
controller: 'searchCtrl'
});
})
- .controller('searchCtrl', function($scope, $location, $routeParams, searchApi, $modal){
+ .controller('searchCtrl', function($scope, $location, $routeParams, searchApi, ammicoApi, $modal){
$scope.q = $routeParams.q || '';
$scope.results = searchApi.searchResource({q:$scope.q, of: 'json', synthesis: 'false', nresults:'10', callback: 'JSON_CALLBACK'}).getJsonp();
@@ -26,7 +26,7 @@
book: idBook,
idInventory: $scope.results.hits[index].metas_dict.inventorynumber
};
- searchApi.listSlides.save(newSlide);
+ ammicoApi.listSlides.save(newSlide);
});
};
})