You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by re...@apache.org on 2016/01/11 16:23:08 UTC
[07/10] git commit: updated refs/heads/master to b1034ed
CLOUDSTACK-9220 Sort list of domains on Domain tab in UI
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/93bbc1af
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/93bbc1af
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/93bbc1af
Branch: refs/heads/master
Commit: 93bbc1afb7986282d6f6ded7ecd373e558f519cc
Parents: 456d854
Author: Remi Bergsma <gi...@remi.nl>
Authored: Sat Jan 9 21:02:38 2016 +0100
Committer: Remi Bergsma <gi...@remi.nl>
Committed: Sat Jan 9 21:02:38 2016 +0100
----------------------------------------------------------------------
ui/scripts/domains.js | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/93bbc1af/ui/scripts/domains.js
----------------------------------------------------------------------
diff --git a/ui/scripts/domains.js b/ui/scripts/domains.js
index dcec93d..9dc801b 100644
--- a/ui/scripts/domains.js
+++ b/ui/scripts/domains.js
@@ -722,6 +722,11 @@
async: false,
success: function(json) {
var domainObjs = json.listdomainsresponse.domain;
+ if (domainObjs != null && domainObjs.length > 0) {
+ domainObjs.sort(function(a, b) {
+ return a.name.localeCompare(b.name);
+ });
+ }
args.response.success({
actionFilter: domainActionfilter,
data: domainObjs
@@ -735,6 +740,11 @@
async: false,
success: function(json) {
var domainObjs = json.listdomainchildrenresponse.domain;
+ if (domainObjs != null && domainObjs.length > 0) {
+ domainObjs.sort(function(a, b) {
+ return a.name.localeCompare(b.name);
+ });
+ }
args.response.success({
actionFilter: domainActionfilter,
data: domainObjs