Fix style of plugin marketplace datatable

This commit is contained in:
printempw 2018-08-16 11:05:28 +08:00
parent f7de3c026d
commit 9b4f05d66a

View File

@ -20,10 +20,11 @@ const marketTableColumnDefs = [
title: trans('admin.pluginTitle'),
data: 'title',
render: (title, type, row) => {
return $.fn.dataTable.render.text().filter(`
<strong>${ title }</strong>
<div class="plugin-name">${ row.name }</div>
`);
const filter = $.fn.dataTable.render.text().filter;
return `
<strong>${ filter(title) }</strong>
<div class="plugin-name">${ filter(row.name) }</div>
`;
}
},
{