mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
More checkbox fixes
This commit is contained in:
parent
30d8b29d90
commit
e862e5ca7e
@ -274,7 +274,7 @@ export function JobTemplatesAdd($filter, $scope, $rootScope, $compile, $location
|
||||
ParseTypeChange({ scope: $scope, field_id: 'job_templates_variables', onChange: callback });
|
||||
|
||||
$scope.playbook_options = [];
|
||||
$scope.allow_callbacks = 'false';
|
||||
$scope.allow_callbacks = false;
|
||||
|
||||
generator.reset();
|
||||
LoadBreadCrumbs();
|
||||
|
||||
@ -284,8 +284,6 @@ export default
|
||||
type: 'checkbox',
|
||||
addRequired: false,
|
||||
editRequird: false,
|
||||
trueValue: 'true',
|
||||
falseValue: 'false',
|
||||
ngChange: "toggleCallback('host_config_key')",
|
||||
column: 2,
|
||||
awPopOver: "<p>Enables creation of a provisioning callback URL. Using the URL a host can contact Tower and request a configuration update " +
|
||||
|
||||
@ -281,6 +281,7 @@ export default
|
||||
scope[list.name][i].success_class = 'success';
|
||||
}
|
||||
else {
|
||||
row.checked = true;
|
||||
scope[list.name][i].success_class = '';
|
||||
}
|
||||
} else {
|
||||
|
||||
@ -34,7 +34,7 @@ export default
|
||||
};
|
||||
|
||||
scope.toggleCallback = function (fld) {
|
||||
if (scope.allow_callbacks === 'false') {
|
||||
if (scope.allow_callbacks === false) {
|
||||
scope[fld] = '';
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user