Switch to angular jqlite for class manipulation on pairedwith form in bonfire/show

This commit is contained in:
Nathan Leniz
2015-02-15 11:51:56 -05:00
parent 92136dcd1f
commit cf288c7daf

View File

@ -197,7 +197,7 @@ profileValidation.directive('existingUsername', ['$http', function($http) {
if (element.val().length > 0) { if (element.val().length > 0) {
ngModel.$setValidity('exists', false); ngModel.$setValidity('exists', false);
} else { } else {
$('#completed-with').removeClass('ng-dirty'); element.removeClass('ng-dirty');
ngModel.$setPristine(); ngModel.$setPristine();
} }
if (element.val()) { if (element.val()) {