# HG changeset patch # User cavaliet # Date 1412630190 -7200 # Node ID 75189d83f84952457a4018ee863046173914d9ee # Parent 9626048992255e358dc35b91c1e76ba2368c88d3 debug diff -r 962604899225 -r 75189d83f849 client/app/gallery/gallery_controller.js --- 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); } } };