mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
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:
parent
b45cfdc21e
commit
5ad44760e1
@ -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;
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user