mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-27 05:07:50 +02:00
Updated layout
This commit is contained in:
parent
0eeb4866f4
commit
6b1e9893e9
13 changed files with 46 additions and 59 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue