CLOUDSTACK-6479: Strict and Preferred modes should only be allowed in Implict Dedication Planner Service Offerings.

This commit is contained in:
Sanjay Tripathi 2014-05-05 14:24:20 +05:30
parent 144990df11
commit 149cb33e3c
1 changed files with 9 additions and 2 deletions

View File

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