From 8f34776dd8dc3908c0de014d0c03de5d9288f992 Mon Sep 17 00:00:00 2001 From: Pranav Saxena Date: Wed, 8 Aug 2012 18:02:39 +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 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));