diff --git a/ui/scripts/ui-custom/enableStaticNAT.js b/ui/scripts/ui-custom/enableStaticNAT.js index 03e060743b7..f7caa6dc661 100644 --- a/ui/scripts/ui-custom/enableStaticNAT.js +++ b/ui/scripts/ui-custom/enableStaticNAT.js @@ -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() {