Skip to content

Commit 5ad4476

Browse files
committed
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
1 parent b45cfdc commit 5ad4476

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎ui/scripts/ui/multiEdit.js‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,14 @@
551551
text: 'Apply',
552552
'class': 'ok',
553553
click: function() {
554+
if (!$dataList.find(
555+
'input[type=radio]:checked, input[type=checkbox]:checked'
556+
).size()) {
557+
cloudStack.dialog.notice({ message: 'Please select an instance '});
558+
559+
return false;
560+
}
561+
554562
$dataList.fadeOut(function() {
555563
addItem($.map(
556564
$dataList.find('tr.multi-edit-selected'),
@@ -566,6 +574,8 @@
566574
$('div.overlay').fadeOut(function() {
567575
$('div.overlay').remove();
568576
});
577+
578+
return true;
569579
}
570580
},
571581
{

0 commit comments

Comments
 (0)