Fixed bug

Fixed a bug where if you check a box in the poll before you right your name it does not get saved to the server
This commit is contained in:
Luke Vella 2015-01-12 23:58:48 +01:00
parent bc1e25377c
commit 861bea5400
10 changed files with 24 additions and 10 deletions

View file

@ -2,6 +2,7 @@ angular.module('rallly')
.controller('EventCtrl', function($scope, $http, $state, Event, Participant){
$(".nav-link").removeClass('active');
var id = $state.params.id;
$scope.participant = {};
$scope.event = Event.get({id:id}, function(data){
$scope.eventUrl = $state.href('event', {
id: $scope.event._id