Skip to content
Snippets Groups Projects
Commit e60bcaab authored by HongKee Moon's avatar HongKee Moon
Browse files

Fix Browse Page link

parent c9f299a3
No related branches found
No related tags found
No related merge requests found
......@@ -42,8 +42,17 @@
},
},
{
title: 'No. Proteins',
title: 'Proteins',
data: 'proteins',
fnCreatedCell: (nTd, sData, oData) => {
// console.log(sData)
if(sData) {
$(nTd).html(sData.length > 4 ? sData.splice(0, 4).join(', ') + ' ...' : sData.join(', '));
}
}
},
{
title: 'No. Proteins',
render: function ( data, type, row, meta ) {
return row.proteins.length;
}
......@@ -58,7 +67,11 @@
title: 'Species',
data: 'species_name',
render: function ( data, type, row, meta ) {
return data + ' (' + row.species_tax_id + ')';
if (data) {
return data + ' (' + row.species_tax_id + ')';
} else {
return 'Chimeras';
}
}
},
];
......@@ -71,7 +84,7 @@
info: true,
data,
pageLength: 100,
order: [[1, 'desc']], // order: [[0, 'asc']],
order: [[2, 'desc']], // order: [[0, 'asc']],
bDestroy: true, // Add this property to new setting,
oLanguage: {
sSearch: "Filter",
......@@ -105,8 +118,8 @@
e.preventDefault()
const tr = $(e.target).parent().parent();
const row = table.row(tr);
// console.log(row.data().proteinName)
vm.moveDetailPage(row.data().uniprot_id);
// console.log(row.data())
vm.moveDetailPage(row.data().unique_name);
});
$('#download').on('click', 'a.dropdown-item', (e) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment