From fc14cead1526d12e68bfc88e3ab95c3e16440b45 Mon Sep 17 00:00:00 2001 From: Pranav Saxena Date: Wed, 8 Aug 2012 18:05:47 +0530 Subject: [PATCH] CS-15851:Intervlan - VMware - Enable Static NAT > if no tier selected> Apply> Status should display 'Please select a tier' --- ui/scripts/ui-custom/enableStaticNAT.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/scripts/ui-custom/enableStaticNAT.js b/ui/scripts/ui-custom/enableStaticNAT.js index ef842c0e95f..c04bc84bc55 100644 --- a/ui/scripts/ui-custom/enableStaticNAT.js +++ b/ui/scripts/ui-custom/enableStaticNAT.js @@ -71,6 +71,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()) { @@ -156,4 +161,4 @@ } }; }; -}(cloudStack, jQuery)); \ No newline at end of file +}(cloudStack, jQuery));