More checkbox fixes

This commit is contained in:
Joe Fiorini
2015-08-04 09:41:00 -04:00
parent 30d8b29d90
commit e862e5ca7e
4 changed files with 3 additions and 4 deletions

View File

@@ -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();

View File

@@ -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 " +

View File

@@ -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 {

View File

@@ -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] = '';
} }
}; };