cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [2/3] git commit: updated refs/heads/4.2 to 3c82e7e
Date Mon, 08 Jul 2013 18:12:40 GMT
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/5304d497
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/5304d497
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/5304d497

Branch: refs/heads/4.2
Commit: 5304d4973b200b3369b949f0800798f66654fa21
Parents: 8cab35a
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 11:10:11 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/5304d497/ui/scripts/vpc.js
----------------------------------------------------------------------
diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js
index b73eba1..9770681 100644
--- a/ui/scripts/vpc.js
+++ b/ui/scripts/vpc.js
@@ -923,7 +923,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