21 lines
442 B
JavaScript
21 lines
442 B
JavaScript
window.createSortLink = function(col)
|
|
{
|
|
var sort = col.name + '_asc';
|
|
if(sort == orderBy) sort = col.name + '_desc';
|
|
|
|
return sortLink.replace('{orderBy}', sort);
|
|
}
|
|
|
|
window.renderCell = function(result, {col, row})
|
|
{
|
|
if(col.name === 'osVersion')
|
|
{
|
|
const{osName, osVersion} = row.data;
|
|
if(osName) result[0] = {html: hostLang[osName + 'List'][osVersion]};
|
|
|
|
return result;
|
|
}
|
|
|
|
return result;
|
|
};
|