diff -r 4053d9a44548 -r c7dfe7185ef7 client/app/gallery/gallery_controller.js --- a/client/app/gallery/gallery_controller.js Mon Mar 23 12:24:13 2015 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -(function(){ - 'use strict'; - - angular.module('ammicoGallery',['ngResource', 'ngRoute']) - .config(function ($routeProvider) { - $routeProvider - .when('/', { - templateUrl: 'gallery/gallery.html', - controller: 'galleryCtrl' - }); - }) - .controller('galleryCtrl', function($scope, $location, slideshowModel){ - console.log('gallery 5',$scope, $location, slideshowModel); - $scope.gallery = slideshowModel.slideshow; - - $scope.deleteItem = function(i){ - 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.hits.splice(i, 1); - } - } - }; - }); - -})();