From 149cb33e3c1e0b2bfaffdd600201704da7cf5eab Mon Sep 17 00:00:00 2001 From: Sanjay Tripathi Date: Mon, 5 May 2014 14:24:20 +0530 Subject: [PATCH] CLOUDSTACK-6479: Strict and Preferred modes should only be allowed in Implict Dedication Planner Service Offerings. --- ui/scripts/configuration.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ui/scripts/configuration.js b/ui/scripts/configuration.js index 1b82188fd7b..1aeb90a4818 100644 --- a/ui/scripts/configuration.js +++ b/ui/scripts/configuration.js @@ -331,8 +331,15 @@ args.response.success({ data: items }); - - + args.$select.change(function() { + var $form = $(this).closest('form'); + var $fields = $form.find('.field'); + if ($(this).val() == "ImplicitDedicationPlanner") { + $form.find('[rel=plannerMode]').css('display', 'block'); + } else { + $form.find('[rel=plannerMode]').hide(); + } + }); } }); }