diff --git a/ui/scripts/ui-custom/enableStaticNAT.js b/ui/scripts/ui-custom/enableStaticNAT.js index 67a54e16ed6..405813e7a39 100644 --- a/ui/scripts/ui-custom/enableStaticNAT.js +++ b/ui/scripts/ui-custom/enableStaticNAT.js @@ -75,6 +75,11 @@ text: _l('label.apply'), 'class': 'ok', click: function() { + if ($dataList.find('.tier-select select').val() == -1) { + cloudStack.dialog.notice({ message: ('Please select a tier')}); + return false; + } + if (!$dataList.find( 'input[type=radio]:checked, input[type=checkbox]:checked' ).size()) { @@ -160,4 +165,4 @@ } }; }; -}(cloudStack, jQuery)); \ No newline at end of file +}(cloudStack, jQuery));