mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03:30
Code organization
This commit is contained in:
parent
e0a00a8705
commit
93ccbdc872
@ -83,6 +83,13 @@ export default
|
||||
});
|
||||
}
|
||||
|
||||
function sync_verbosity_select2() {
|
||||
CreateSelect2({
|
||||
element:'#job_templates_verbosity',
|
||||
multiple: false
|
||||
});
|
||||
}
|
||||
|
||||
getPlaybooks = function (project) {
|
||||
var url;
|
||||
if ($scope.playbook) {
|
||||
@ -243,6 +250,8 @@ export default
|
||||
}
|
||||
});
|
||||
|
||||
// watch for changes to 'verbosity', ensure we keep our select2 in sync when it changes.
|
||||
$scope.$watch('verbosity', sync_verbosity_select2);
|
||||
|
||||
|
||||
// Turn off 'Wait' after both cloud credential and playbook list come back
|
||||
@ -399,15 +408,6 @@ export default
|
||||
});
|
||||
|
||||
// setup verbosity options lookup
|
||||
function sync_verbosity_select2() {
|
||||
CreateSelect2({
|
||||
element:'#job_templates_verbosity',
|
||||
multiple: false
|
||||
});
|
||||
}
|
||||
$scope.$watch('verbosity', sync_verbosity_select2);
|
||||
sync_verbosity_select2();
|
||||
|
||||
GetChoices({
|
||||
scope: $scope,
|
||||
url: defaultUrl,
|
||||
@ -415,6 +415,7 @@ export default
|
||||
variable: 'verbosity_options',
|
||||
callback: 'choicesReady'
|
||||
});
|
||||
sync_verbosity_select2();
|
||||
|
||||
// setup job type options lookup
|
||||
GetChoices({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user