Skip to content

Commit

Permalink
Merge "Closes-Bug: #1523876 - Added a sorting comparator for status f…
Browse files Browse the repository at this point in the history
…ields which needs to be passed as sort function to the column." into R2.20
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Dec 9, 2015
2 parents 603c3f2 + 8ea4043 commit 780be97
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 8 deletions.
Expand Up @@ -106,6 +106,12 @@ monitorInfraAnalyticsSummaryClass = (function() {
searchFn:function(d) {
return getNodeStatusContentForSummayPages(d,'text');
},
sortable:{
sortBy: function (d) {
return getNodeStatusContentForSummayPages(d,'text');
}
},
sorter:comparatorStatus,
minWidth:110,
exportConfig: {
allow: true,
Expand Down
Expand Up @@ -101,6 +101,12 @@ monitorInfraConfigSummaryClass = (function() {
searchFn:function(dc) {
return getNodeStatusContentForSummayPages(dc,'text');
},
sortable:{
sortBy: function (d) {
return getNodeStatusContentForSummayPages(d,'text');
}
},
sorter:comparatorStatus,
minWidth:110,
exportConfig: {
allow: true,
Expand Down
Expand Up @@ -103,6 +103,12 @@ monitorInfraControlSummaryClass = (function() {
searchFn:function(d) {
return getNodeStatusContentForSummayPages(d,'text');
},
sortable:{
sortBy: function (d) {
return getNodeStatusContentForSummayPages(d,'text');
}
},
sorter:comparatorStatus,
minWidth:150
},
{
Expand Down
Expand Up @@ -96,7 +96,13 @@ monitorInfraDatabaseSummaryClass = (function() {
advFormatter: function(dc) {
return getNodeStatusContentForSummayPages(dc,'text');
}
}
},
sortable:{
sortBy: function (d) {
return getNodeStatusContentForSummayPages(d,'text');
}
},
sorter:comparatorStatus
},
{
field:"formattedAvailableSpace",
Expand Down
Expand Up @@ -307,13 +307,19 @@ monitorInfraComputeSummaryClass = (function() {
},
minWidth:150,
exportConfig: {
allow: true,
advFormatter: function(dc) {
return getNodeStatusContentForSummayPages(dc,'text');
}
},
},
{
allow: true,
advFormatter: function(dc) {
return getNodeStatusContentForSummayPages(dc,'text');
}
},
sortable:{
sortBy: function (d) {
return getNodeStatusContentForSummayPages(d,'text');
}
},
sorter:comparatorStatus
},
{
field:"vRouterType",
name:"Type",
formatter: function(r,c,v,cd,dc) {
Expand Down

0 comments on commit 780be97

Please sign in to comment.