Switch to angular jqlite for class manipulation on pairedwith form in bonfire/show
This commit is contained in:
@ -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()) {
|
||||||
|
Reference in New Issue
Block a user