incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pran...@apache.org
Subject git commit: CS-15851:Intervlan - VMware - Enable Static NAT > if no tier selected> Apply> Status should display 'Please select a tier'
Date Wed, 08 Aug 2012 12:37:27 GMT
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 <pranav.saxena@citrix.com>
Authored: Wed Aug 8 18:02:39 2012 +0530
Committer: Pranav Saxena <pranav.saxena@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));


Mime
View raw message