cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [1/2] git commit: updated refs/heads/master to c94cb0f
Date Mon, 08 Jul 2013 17:58:25 GMT
Updated Branches:
  refs/heads/master 91d31b29b -> c94cb0fc4


ACL UI: Sort ACL items by number


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

Branch: refs/heads/master
Commit: 1b86759f7a22394db7a663c2fd066f1a13293e67
Parents: 91d31b2
Author: Brian Federle <brian.federle@citrix.com>
Authored: Mon Jul 8 10:57:20 2013 -0700
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Mon Jul 8 10:57:20 2013 -0700

----------------------------------------------------------------------
 ui/scripts/vpc.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1b86759f/ui/scripts/vpc.js
----------------------------------------------------------------------
diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js
index 940620b..efa987f 100644
--- a/ui/scripts/vpc.js
+++ b/ui/scripts/vpc.js
@@ -1143,7 +1143,9 @@
                       $.ajax({
                         url:createURL('listNetworkACLs&aclid=' + args.context.aclLists[0].id),
                         success:function(json){
-                          var items = json.listnetworkaclsresponse.networkacl;
+                          var items = json.listnetworkaclsresponse.networkacl.sort(function(a,
b) {
+                            return a.number >= b.number;
+                          });
 
                           args.response.success({
                             data:items


Mime
View raw message