From 0b3077a3a9ffddea9d5408517928c004b5fd4ca4 Mon Sep 17 00:00:00 2001 From: Chris Church Date: Fri, 12 Sep 2014 12:38:58 -0400 Subject: [PATCH] Fix JS indentation. --- awx/ui/static/js/controllers/Credentials.js | 4 ++-- awx/ui/static/js/helpers/Credentials.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/awx/ui/static/js/controllers/Credentials.js b/awx/ui/static/js/controllers/Credentials.js index 0611a425ec..3b929dc8a1 100644 --- a/awx/ui/static/js/controllers/Credentials.js +++ b/awx/ui/static/js/controllers/Credentials.js @@ -397,7 +397,7 @@ function CredentialsEdit($scope, $rootScope, $compile, $location, $log, $routePa if (!Empty($scope.su_username) || !Empty($scope.su_password)) { $scope.login_method = 'su'; } else if (!Empty($scope.sudo_username) || !Empty($scope.sudo_password)) { - $scope.login_method = 'sudo'; + $scope.login_method = 'sudo'; } else { $scope.login_method = ''; } @@ -571,4 +571,4 @@ CredentialsEdit.$inject = ['$scope', '$rootScope', '$compile', '$location', '$lo 'GenerateForm', 'Rest', 'Alert', 'ProcessErrors', 'LoadBreadCrumbs', 'RelatedSearchInit', 'RelatedPaginateInit', 'ReturnToCaller', 'ClearScope', 'Prompt', 'GetBasePath', 'GetChoices', 'KindChange', 'UserList', 'TeamList', 'LookUpInit', 'Empty', 'OwnerChange', 'LoginMethodChange', 'FormSave', 'Stream', 'Wait' -]; \ No newline at end of file +]; diff --git a/awx/ui/static/js/helpers/Credentials.js b/awx/ui/static/js/helpers/Credentials.js index 5ce5807268..7b91295c6e 100644 --- a/awx/ui/static/js/helpers/Credentials.js +++ b/awx/ui/static/js/helpers/Credentials.js @@ -156,8 +156,8 @@ angular.module('CredentialsHelper', ['Utilities']) scope.sudo_password = null; } if (login_method !== 'su') { - scope.su_username = null; - scope.su_password = null; + scope.su_username = null; + scope.su_password = null; } }; } @@ -264,4 +264,4 @@ angular.module('CredentialsHelper', ['Utilities']) } }; } -]); \ No newline at end of file +]);