clean newPerson model

This commit is contained in:
Davide Alberani 2016-04-17 16:45:24 +02:00
parent c5361a880f
commit dbc1fd8918

View file

@ -231,6 +231,7 @@ eventManControllers.controller('EventDetailsCtrl', ['$scope', '$state', 'Event',
var personObj = new Person(person);
personObj.$save(function(p) {
$scope._addAttendee(angular.copy(p));
$scope.newPerson = {};
});
} else {
$scope._addAttendee(angular.copy(person));