Fix JS indentation.

This commit is contained in:
Chris Church
2014-09-12 12:38:58 -04:00
parent a0fdf62e70
commit 0b3077a3a9
2 changed files with 5 additions and 5 deletions

View File

@@ -397,7 +397,7 @@ function CredentialsEdit($scope, $rootScope, $compile, $location, $log, $routePa
if (!Empty($scope.su_username) || !Empty($scope.su_password)) { if (!Empty($scope.su_username) || !Empty($scope.su_password)) {
$scope.login_method = 'su'; $scope.login_method = 'su';
} else if (!Empty($scope.sudo_username) || !Empty($scope.sudo_password)) { } else if (!Empty($scope.sudo_username) || !Empty($scope.sudo_password)) {
$scope.login_method = 'sudo'; $scope.login_method = 'sudo';
} else { } else {
$scope.login_method = ''; $scope.login_method = '';
} }
@@ -571,4 +571,4 @@ CredentialsEdit.$inject = ['$scope', '$rootScope', '$compile', '$location', '$lo
'GenerateForm', 'Rest', 'Alert', 'ProcessErrors', 'LoadBreadCrumbs', 'RelatedSearchInit', 'RelatedPaginateInit', 'GenerateForm', 'Rest', 'Alert', 'ProcessErrors', 'LoadBreadCrumbs', 'RelatedSearchInit', 'RelatedPaginateInit',
'ReturnToCaller', 'ClearScope', 'Prompt', 'GetBasePath', 'GetChoices', 'KindChange', 'UserList', 'TeamList', 'LookUpInit', 'ReturnToCaller', 'ClearScope', 'Prompt', 'GetBasePath', 'GetChoices', 'KindChange', 'UserList', 'TeamList', 'LookUpInit',
'Empty', 'OwnerChange', 'LoginMethodChange', 'FormSave', 'Stream', 'Wait' 'Empty', 'OwnerChange', 'LoginMethodChange', 'FormSave', 'Stream', 'Wait'
]; ];

View File

@@ -156,8 +156,8 @@ angular.module('CredentialsHelper', ['Utilities'])
scope.sudo_password = null; scope.sudo_password = null;
} }
if (login_method !== 'su') { if (login_method !== 'su') {
scope.su_username = null; scope.su_username = null;
scope.su_password = null; scope.su_password = null;
} }
}; };
} }
@@ -264,4 +264,4 @@ angular.module('CredentialsHelper', ['Utilities'])
} }
}; };
} }
]); ]);