diff --git a/awx/ui/static/js/controllers/Credentials.js b/awx/ui/static/js/controllers/Credentials.js index 8ce0ff3c1c..0cb5164667 100644 --- a/awx/ui/static/js/controllers/Credentials.js +++ b/awx/ui/static/js/controllers/Credentials.js @@ -259,12 +259,7 @@ export function CredentialsAdd($scope, $rootScope, $compile, $location, $log, $r // Respond to 'Ask at runtime?' checkbox $scope.ask = function (fld, associated) { - console.log("got here"); - debugger; - if ($scope[fld] === 'ASK') { - $scope[fld + "_ask"] = true; - } - else if ($scope[fld + '_ask']) { + if ($scope[fld + '_ask']) { $scope[fld] = 'ASK'; if (associated !== "undefined") { $scope[associated] = ''; @@ -555,7 +550,7 @@ export function CredentialsEdit($scope, $rootScope, $compile, $location, $log, $ // Respond to 'Ask at runtime?' checkbox $scope.ask = function (fld, associated) { if ($scope[fld + '_ask']) { - $scope[fld] = 'ASK' + $scope[fld] = 'ASK'; if (associated !== "undefined") { $scope[associated] = ''; $scope[form.name + '_form'][associated].$setValidity('awpassmatch', true); @@ -563,7 +558,7 @@ export function CredentialsEdit($scope, $rootScope, $compile, $location, $log, $ } else { $scope[fld] = ''; if (associated !== "undefined") { - $scope[associated] = 'ASK'; + $scope[associated] = ''; $scope[form.name + '_form'][associated].$setValidity('awpassmatch', true); } } diff --git a/awx/ui/static/js/debug.js b/awx/ui/static/js/debug.js index 07255c050c..14dd9cbfad 100644 --- a/awx/ui/static/js/debug.js +++ b/awx/ui/static/js/debug.js @@ -30,7 +30,7 @@ export function __deferLoadIfEnabled() { var deferPattern = /aw\.suspend=true/; if (deferPattern.test(window.location.search) || deferPattern.test(window.location.hash)) { - console.log('Deferred load due to "aw.suspend=true" in URL. Please execute `angular.resumeBootstrap()` to continue.'); + // console.log('Deferred load due to "aw.suspend=true" in URL. Please execute `angular.resumeBootstrap()` to continue.'); window.name = 'NG_DEFER_BOOTSTRAP!' + (window.name || ''); } diff --git a/awx/ui/static/js/directives/job-status-graph.js b/awx/ui/static/js/directives/job-status-graph.js index 7b54e1e8e0..d33080bd8f 100644 --- a/awx/ui/static/js/directives/job-status-graph.js +++ b/awx/ui/static/js/directives/job-status-graph.js @@ -19,7 +19,7 @@ function JobStatusGraph($rootScope, $compile , $location, $window, Wait, adjustG link: link }; - function link(scope, element, attr) { + function link(scope, element) { var job_type, job_status_chart = nv.models.lineChart(); scope.period="month"; diff --git a/awx/ui/static/js/shared/form-generator.js b/awx/ui/static/js/shared/form-generator.js index 53582e7d5a..51bdea2871 100644 --- a/awx/ui/static/js/shared/form-generator.js +++ b/awx/ui/static/js/shared/form-generator.js @@ -855,7 +855,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', ListGenerat $(buttonId).html("ABC"); $(inputId).attr("type", "password"); } - } + }; html += "\