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:05:47 +05:30
parent 4c6421abf7
commit fc14cead15
1 changed files with 6 additions and 1 deletions

View File

@ -71,6 +71,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()) {
@ -156,4 +161,4 @@
}
};
};
}(cloudStack, jQuery));
}(cloudStack, jQuery));