Minor scripts aestetic fixes

- removed icon label
- aligned buttons
This commit is contained in:
Luca 2020-01-27 15:56:27 +01:00
parent 1ea5311bee
commit 3d2de3a295
2 changed files with 7 additions and 4 deletions

View file

@ -1451,10 +1451,12 @@ $(document).ready(function() {
{
data: null,
sortable: true,
searchable: true,
searchable: true,
className: 'text-center',
render: function (data, type, row) {
const icon = (!row.category_icon) ? '' : `<i class='fa ${row.category_icon}'></i>`;
return `${icon}${!row.category_title ? '' : ' ' + row.category_title}`;
if (type == "display") return `${icon}`;
return row.category_title;
}
},
{
@ -1500,7 +1502,8 @@ $(document).ready(function() {
targets: -1,
data: null,
name: 'actions',
className: 'text-center',
className: 'text-center',
width: '200px',
sortable: false,
render: function (data, type, row) {