AC-1054 came up with a fix that allows auto-form-fill browser pluggins to work. Applied to User and Credential pages.

This commit is contained in:
Chris Houseknecht
2014-03-27 02:29:15 -04:00
parent 4889681df3
commit 3b95fbd30b
5 changed files with 106 additions and 61 deletions
+8 -2
View File
@@ -215,7 +215,10 @@ function CredentialsAdd($scope, $rootScope, $compile, $location, $log, $routePar
// Save
$scope.formSave = function () {
generator.clearApiErrors();
FormSave({ scope: $scope, mode: 'add' });
generator.checkAutoFill();
if ($scope[form.name + '_form'].$valid) {
FormSave({ scope: $scope, mode: 'add' });
}
};
// Handle Owner change
@@ -420,7 +423,10 @@ function CredentialsEdit($scope, $rootScope, $compile, $location, $log, $routePa
// Save changes to the parent
$scope.formSave = function () {
generator.clearApiErrors();
FormSave({ scope: $scope, mode: 'edit' });
generator.checkAutoFill({ scope: $scope });
if ($scope[form.name + '_form'].$valid) {
FormSave({ scope: $scope, mode: 'edit' });
}
};
// Handle Owner change