bug 12400

Show notice if no VMs are selected in port forwarding/load balancing

 -- prevent server call from being performed and 'infinite list' from
    being generated
This commit is contained in:
Brian Federle 2011-12-07 15:53:47 -08:00
parent b45cfdc21e
commit 5ad44760e1

View File

@ -551,6 +551,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;
}
$dataList.fadeOut(function() {
addItem($.map(
$dataList.find('tr.multi-edit-selected'),
@ -566,6 +574,8 @@
$('div.overlay').fadeOut(function() {
$('div.overlay').remove();
});
return true;
}
},
{