Cleaned up date-time navigation, added some stuff to accounts, expanded JSON response for transactions.

This commit is contained in:
Sander Dorigo
2014-10-09 07:24:47 +02:00
parent 3cba673a9c
commit a687140056
8 changed files with 154 additions and 138 deletions

View File

@@ -81,6 +81,23 @@ $(document).ready(function () {
return '<a href="' + data.url + '" title="' + data.name + '">' + data.name + '</a>';
}
},
{
name: 'components',
data: 'components',
searchable: true,
sortable: false,
title: '',
render: function (data, type, full, meta) {
var html = '';
if (data.budget_id > 0) {
html += '<a href="' + data.budget_url + '" title="' + data.budget_name + '"><i class="fa fa-tasks fa-fw"></i></a> ';
}
if (data.category_id > 0) {
html += '<a href="' + data.category_url + '" title="' + data.category_name + '"><i class="fa fa-bar-chart fa-fw"></i></a> ';
}
return html;
}
},
{
name: 'id',
data: 'id',