You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2013/07/09 22:46:10 UTC

[28/50] [abbrv] git commit: updated refs/heads/ui-ucs to 9334dab

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/ui-ucs
Commit: 1b86759f7a22394db7a663c2fd066f1a13293e67
Parents: 91d31b2
Author: Brian Federle <br...@citrix.com>
Authored: Mon Jul 8 10:57:20 2013 -0700
Committer: Brian Federle <br...@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