Make error disappear when email box is edited

This commit is contained in:
Joseph Schorr 2014-01-20 18:27:17 -05:00
parent 8081680947
commit d71b50d6b1

View file

@ -1467,8 +1467,11 @@ function OrgAdminCtrl($rootScope, $scope, $timeout, Restangular, $routeParams, U
$scope.hasPaidPlan = plan && plan.price > 0;
};
$scope.changeEmail = function() {
$scope.$watch('organizationEmail', function(e) {
$('#changeEmailForm').popover('hide');
});
$scope.changeEmail = function() {
$scope.changingOrganization = true;
var params = {
'orgname': orgname