Fixed issue with Allow Callback checkbox and host_config_key value when user unchecks Allow Callback checkbox.

This commit is contained in:
chouseknecht
2013-07-15 13:48:02 -04:00
parent 9c39f13056
commit d2c08d2848
3 changed files with 9 additions and 9 deletions

View File

@@ -377,7 +377,7 @@ function JobTemplatesEdit ($scope, $rootScope, $compile, $location, $log, $route
getPlaybooks(scope.project);
$('#forks-slider').slider('value',scope.forks); // align slider handle with value.
var dft = (scope['host_config_key']) ? 'true' : 'false';
var dft = (scope['host_config_key'] === "" || scope['host_config_key'] === null) ? 'false' : 'true';
md5Setup({
scope: scope,
master: master,