Skip to content

Commit ba4f814

Browse files
committed
Fix enable static NAT dialog
Require VM selection, or pop-up error message -- prevents server call from being made without a required VM.
1 parent 16ff38d commit ba4f814

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎ui/scripts/ui-custom/enableStaticNAT.js‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@
5656
text: 'Apply',
5757
'class': 'ok',
5858
click: function() {
59+
if (!$dataList.find(
60+
'input[type=radio]:checked, input[type=checkbox]:checked'
61+
).size()) {
62+
cloudStack.dialog.notice({ message: 'Please select an instance '});
63+
64+
return false;
65+
}
66+
5967
var complete = args.complete;
6068

6169
$dataList.fadeOut(function() {

0 commit comments

Comments
 (0)