mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-16 17:41:50 +02:00
Cleaned up some code
This commit is contained in:
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
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue