Updated Branches:
  refs/heads/master 391e873bd -> cd238b4aa

Egress UI: Fix columns

-If startport or endport are blank, still show the blank columns to
 keep alignment correct.


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

Branch: refs/heads/master
Commit: 75e51a03aacf947ab51d2ff0d75db33cc8dcb4f3
Parents: 391e873
Author: Brian Federle <brian.fede...@citrix.com>
Authored: Thu Dec 6 13:14:13 2012 -0800
Committer: Brian Federle <brian.fede...@citrix.com>
Committed: Thu Dec 6 14:35:30 2012 -0800

----------------------------------------------------------------------
 ui/scripts/network.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/75e51a03/ui/scripts/network.js
----------------------------------------------------------------------
diff --git a/ui/scripts/network.js b/ui/scripts/network.js
index 7cdf977..333e1fb 100755
--- a/ui/scripts/network.js
+++ b/ui/scripts/network.js
@@ -1198,6 +1198,14 @@
                                   startport: 'All',
                                   endport: 'All'
                                 });
+                              } else if (rule.protocol == 'tcp' || 
rule.protocol == 'udp') {
+                                if (!rule.startport) {
+                                  rule.startport = ' ';
+                                }
+
+                                if (!rule.endport) {
+                                  rule.endport = ' ';
+                                }
                               }
 
                               return rule;

Reply via email to