CS-15851:Intervlan - VMware - Enable Static NAT > if no tier selected> Apply> Status should display 'Please select a tier'

This commit is contained in:
Pranav Saxena 2012-08-08 18:02:39 +05:30
parent dd7a0da9a7
commit 8f34776dd8
1 changed files with 6 additions and 1 deletions

View File

@ -75,6 +75,11 @@
text: _l('label.apply'),
'class': 'ok',
click: function() {
if ($dataList.find('.tier-select select').val() == -1) {
cloudStack.dialog.notice({ message: ('Please select a tier')});
return false;
}
if (!$dataList.find(
'input[type=radio]:checked, input[type=checkbox]:checked'
).size()) {
@ -160,4 +165,4 @@
}
};
};
}(cloudStack, jQuery));
}(cloudStack, jQuery));