Fix enable static NAT dialog

Require VM selection, or pop-up error message -- prevents server call
from being made without a required VM.
This commit is contained in:
Brian Federle 2011-12-07 19:54:38 -08:00
parent 16ff38d0fd
commit ba4f814d90
1 changed files with 8 additions and 0 deletions

View File

@ -56,6 +56,14 @@
text: 'Apply',
'class': 'ok',
click: function() {
if (!$dataList.find(
'input[type=radio]:checked, input[type=checkbox]:checked'
).size()) {
cloudStack.dialog.notice({ message: 'Please select an instance '});
return false;
}
var complete = args.complete;
$dataList.fadeOut(function() {