You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by pr...@apache.org on 2012/08/08 14:37:27 UTC

git commit: CS-15851:Intervlan - VMware - Enable Static NAT > if no tier selected> Apply> Status should display 'Please select a tier'

Updated Branches:
  refs/heads/vpc dd7a0da9a -> 8f34776dd


CS-15851:Intervlan - VMware - Enable Static NAT > if no tier selected> Apply> Status should display 'Please select a tier'


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/8f34776d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/8f34776d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/8f34776d

Branch: refs/heads/vpc
Commit: 8f34776dd8dc3908c0de014d0c03de5d9288f992
Parents: dd7a0da
Author: Pranav Saxena <pr...@citrix.com>
Authored: Wed Aug 8 18:02:39 2012 +0530
Committer: Pranav Saxena <pr...@citrix.com>
Committed: Wed Aug 8 18:02:39 2012 +0530

----------------------------------------------------------------------
 ui/scripts/ui-custom/enableStaticNAT.js |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/8f34776d/ui/scripts/ui-custom/enableStaticNAT.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui-custom/enableStaticNAT.js b/ui/scripts/ui-custom/enableStaticNAT.js
index 67a54e1..405813e 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));