mirror of https://github.com/apache/cloudstack.git
Merge pull request #1327 from remibergsma/47_sort_domain_list_ui
CLOUDSTACK-9220 Sort list of domains on Domain tab in UIThe list of domains was unsorted and that annoyed me so I sorted it :-) * pr/1327: CLOUDSTACK-9220 Sort list of domains on Domain tab in UI Signed-off-by: Remi Bergsma <github@remi.nl>
This commit is contained in:
commit
4b974c599b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue