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