metrics: add supercolumn on quick-view column in metrics widget

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2015-10-14 21:34:17 +05:30
parent 64858ebc38
commit 06102f9b0e
1 changed files with 8 additions and 1 deletions

View File

@ -830,10 +830,17 @@
var colspan = Object.keys(field.columns).length;
addColumnToTr($tr, key, colspan, field.label);
} else {
addColumnToTr($tr, key, 1, '');
var label = '';
if (key == 'name') {
label = 'label.resources';
}
addColumnToTr($tr, key, 1, label);
}
return true;
});
if (detailView && !$.isFunction(detailView) && !detailView.noCompact && !uiCustom) {
addColumnToTr($tr, 'quick-view', 1, '');
}
$tr = $('<tr>').appendTo($thead);
$tr.addClass('groupable-header');
}