diff --git a/awx/ui/static/js/controllers/Adhoc.js b/awx/ui/static/js/controllers/Adhoc.js index 44409af5f4..6c08ac18b8 100644 --- a/awx/ui/static/js/controllers/Adhoc.js +++ b/awx/ui/static/js/controllers/Adhoc.js @@ -12,9 +12,9 @@ * @description This controller controls the adhoc form creation, command launching and navigating to standard out after command has been succesfully ran. */ export function AdhocCtrl($scope, $rootScope, $location, $routeParams, - AdhocForm, GenerateForm, Rest, ProcessErrors, ClearScope, GetBasePath, - GetChoices, KindChange, LookUpInit, CredentialList, Empty, OwnerChange, - LoginMethodChange, Wait) { + CheckPasswords, PromptForPasswords, CreateLaunchDialog, AdhocForm, GenerateForm, Rest, ProcessErrors, ClearScope, + GetBasePath, GetChoices, KindChange, LookUpInit, CredentialList, Empty, + Wait) { ClearScope(); @@ -76,9 +76,6 @@ export function AdhocCtrl($scope, $rootScope, $location, $routeParams, input_type: 'radio' }); - OwnerChange({ scope: $scope }); - LoginMethodChange({ scope: $scope }); - Wait('stop'); // END: form population }); @@ -91,24 +88,12 @@ export function AdhocCtrl($scope, $rootScope, $location, $routeParams, callback: 'choicesReadyAdhoc' }); - // Handle Owner change - $scope.ownerChange = function () { - OwnerChange({ scope: $scope }); - }; - - // Handle Login Method change - $scope.loginMethodChange = function () { - LoginMethodChange({ scope: $scope }); - }; - - // Handle Kind change - $scope.kindChange = function () { - KindChange({ scope: $scope, form: form, reset: true }); - }; - // launch the job with the provided form data $scope.launchJob = function () { - var fld, data={}; + var fld, data={}, html; + + html = '