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 = '';
} }

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;
} }
}; };
} }