--- a/client/app/gallery/gallery_controller.js Mon Oct 06 23:14:08 2014 +0200
+++ b/client/app/gallery/gallery_controller.js Mon Oct 06 23:16:30 2014 +0200
@@ -14,9 +14,9 @@
$scope.gallery = slideshowModel.slideshow;
$scope.deleteItem = function(i){
- if(0<=i && i<$scope.gallery.images.length){
+ if(0<=i && i<$scope.gallery.hits.length){
if(window.confirm('Êtes-vous sûr(e) de vouloir effacer cet élément ? Cette action est irrémédiable.')){
- $scope.gallery.images.splice(i, 1);
+ $scope.gallery.hits.splice(i, 1);
}
}
};