Updated layout

This commit is contained in:
Luke Vella 2015-01-12 17:37:45 +01:00
parent 0eeb4866f4
commit 6b1e9893e9
13 changed files with 46 additions and 59 deletions

View file

@ -1,5 +1,6 @@
angular.module('rallly')
.controller('EventCtrl', function($scope, $http, $state, Event, Participant){
$(".nav-link").removeClass('active');
var id = $state.params.id;
$scope.event = Event.get({id:id}, function(data){}, function(e){
$state.go('notfound');
@ -18,7 +19,6 @@ angular.module('rallly')
id : $scope.event._id,
pid : participant._id
}, participant);
// Event.update({'_id':$scope.event.id}, $scope.event);
}
$scope.edit = function(participant){
$scope.defaults[$scope.event.participants.indexOf(participant)] = angular.copy(participant);