clean newPerson model
This commit is contained in:
parent
c5361a880f
commit
dbc1fd8918
1 changed files with 1 additions and 0 deletions
1
angular_app/js/controllers.js
vendored
1
angular_app/js/controllers.js
vendored
|
@ -231,6 +231,7 @@ eventManControllers.controller('EventDetailsCtrl', ['$scope', '$state', 'Event',
|
||||||
var personObj = new Person(person);
|
var personObj = new Person(person);
|
||||||
personObj.$save(function(p) {
|
personObj.$save(function(p) {
|
||||||
$scope._addAttendee(angular.copy(p));
|
$scope._addAttendee(angular.copy(p));
|
||||||
|
$scope.newPerson = {};
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$scope._addAttendee(angular.copy(person));
|
$scope._addAttendee(angular.copy(person));
|
||||||
|
|
Loading…
Reference in a new issue