From 6c44c0661dae0e9de4ed53fad8951e72dbbd3335 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 1654095402b..704f4dd9db0 100644 --- a/ui/scripts/configuration.js +++ b/ui/scripts/configuration.js @@ -353,8 +353,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(); + } + }); } }); }