Cleaned up some code

This commit is contained in:
Luke Vella 2015-02-04 18:32:16 +01:00
parent 0e0e49dc35
commit bcc35ffe73
3 changed files with 52 additions and 53 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -11,7 +11,6 @@ angular.module('rallly')
scope.participant = {}; scope.participant = {};
var datesCount = []; var datesCount = [];
scope.event.$promise.then(function(event){ scope.event.$promise.then(function(event){
console.log(event);
var examplesNames = ['John Example', 'Jane Specimen','Mark Instance', 'Mary Case']; var examplesNames = ['John Example', 'Jane Specimen','Mark Instance', 'Mary Case'];
var examples = []; var examples = [];
for (var i = 0; i < examplesNames.length; i++){ for (var i = 0; i < examplesNames.length; i++){
@ -24,6 +23,7 @@ angular.module('rallly')
examples.push(example); examples.push(example);
} }
scope.examples = examples; scope.examples = examples;
})
scope.delete = function(participant){ scope.delete = function(participant){
var modal = new ConfirmModal({ var modal = new ConfirmModal({
title : 'Delete ' + participant.name + '?', title : 'Delete ' + participant.name + '?',
@ -74,7 +74,6 @@ angular.module('rallly')
scope.formnew.$setPristine(); scope.formnew.$setPristine();
} }
} }
})
} }
} }
}); });