CLOUDSTACK-6170 (when the "No Thanks" radio button is selected, remove controls related to custom size and custom IOPS)

This commit is contained in:
Mike Tutkowski 2014-03-22 19:29:39 -06:00
parent bd6f0db31a
commit 2926d949f2
1 changed files with 10 additions and 1 deletions

View File

@ -517,7 +517,16 @@
return elem.id == val;
})[0];
if (!item) return true;
if (!item) {
// handle removal of custom size controls
$step.find('.section.custom-size').hide();
$step.removeClass('custom-disk-size');
// handle removal of custom IOPS controls
$step.removeClass('custom-iops-do');
return true;
}
var custom = item[args.customFlag];