From 579ad8555321939bc3b4f8a001752cfb820e0b12 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Fri, 20 Mar 2015 14:03:59 -0400 Subject: [PATCH] fixing 0 bug on cleanup job details form --- awx/ui/static/js/helpers/ConfigureTower.js | 10 +++++----- awx/ui/static/partials/configure_tower.html | 4 ++-- awx/ui/templates/ui/index.html | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/awx/ui/static/js/helpers/ConfigureTower.js b/awx/ui/static/js/helpers/ConfigureTower.js index 898a850751..3bda266ca9 100644 --- a/awx/ui/static/js/helpers/ConfigureTower.js +++ b/awx/ui/static/js/helpers/ConfigureTower.js @@ -156,12 +156,12 @@ export default // this is a work-around for getting awMax to work (without // clearing out the form) scope.$watch('days_to_keep', function(newVal) { // oldVal, scope) { // unused params get caught by jshint - if (!newVal) { - $('#prompt-for-days-launch').prop("disabled", true); + if (!newVal && newVal !== 0) { + $('#prompt-for-days-launch').prop("disabled", true); } else if (isNaN(newVal)) { - $('#prompt-for-days-launch').prop("disabled", true); - } else if (newVal <= 0) { - $('#prompt-for-days-launch').prop("disabled", true); + $('#prompt-for-days-launch').prop("disabled", true); + } else if (newVal < 0) { + $('#prompt-for-days-launch').prop("disabled", true); } else if (newVal > 9999) { $('#prompt-for-days-launch').prop("disabled", true); } else { diff --git a/awx/ui/static/partials/configure_tower.html b/awx/ui/static/partials/configure_tower.html index ac04adad18..6b4d64532f 100644 --- a/awx/ui/static/partials/configure_tower.html +++ b/awx/ui/static/partials/configure_tower.html @@ -25,7 +25,7 @@ \ No newline at end of file + diff --git a/awx/ui/templates/ui/index.html b/awx/ui/templates/ui/index.html index 41a84ca269..292083ca9c 100644 --- a/awx/ui/templates/ui/index.html +++ b/awx/ui/templates/ui/index.html @@ -268,7 +268,7 @@