From 0f83582fede7cee5e6df93db91790bce2cf33987 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 30 Dec 2018 15:44:33 +0100 Subject: [PATCH] Fix #1944 --- public/v1/js/ff/search/index.js | 10 ++ public/v1/js/ff/transactions/list.js | 2 + .../views/v1/partials/transaction-row.twig | 4 +- resources/views/v1/search/search.twig | 96 ++++++++++++------- 4 files changed, 77 insertions(+), 35 deletions(-) diff --git a/public/v1/js/ff/search/index.js b/public/v1/js/ff/search/index.js index 70615ae476..c7ccc645ef 100644 --- a/public/v1/js/ff/search/index.js +++ b/public/v1/js/ff/search/index.js @@ -47,4 +47,14 @@ function presentSearchResults(data) { $('.select_all_single').unbind('change').change(function () { countChecked(); }); + // make sure select button works: + $('input[name="select_all"]').change(function () { + if (this.checked) { + checkAll(); + countChecked(); + } else { + uncheckAll(); + countChecked(); + } + }); } \ No newline at end of file diff --git a/public/v1/js/ff/transactions/list.js b/public/v1/js/ff/transactions/list.js index bed2fceeb5..46bb3639ef 100644 --- a/public/v1/js/ff/transactions/list.js +++ b/public/v1/js/ff/transactions/list.js @@ -153,6 +153,7 @@ function countChecked() { */ function checkAll() { "use strict"; + console.log('Now in CheckAll(('); $('.select_all_single').prop('checked', true); } @@ -207,6 +208,7 @@ function stopMassSelect() { */ function startMassSelect() { "use strict"; + console.log('Now in startMassSelect()'); // show "select all" box in table header. $('.select_boxes').show(); diff --git a/resources/views/v1/partials/transaction-row.twig b/resources/views/v1/partials/transaction-row.twig index cc7101a1f6..223bb6eb07 100644 --- a/resources/views/v1/partials/transaction-row.twig +++ b/resources/views/v1/partials/transaction-row.twig @@ -71,8 +71,8 @@ {% endif %} - -
+ +
{% if sorting %}{% endif %}
diff --git a/resources/views/v1/search/search.twig b/resources/views/v1/search/search.twig index bfda384977..f325bb9666 100644 --- a/resources/views/v1/search/search.twig +++ b/resources/views/v1/search/search.twig @@ -1,76 +1,106 @@ - + {# hidden row for checkboxes #} + + + {# header for icon #} + - - - - + + + + - + + {# visible row for edit/delete buttons #} + {% for transaction in transactions %} - - + {# select buttons #} + + {# icon #} - - + + {# amount #} + + + {# date #} - - + + {# budget, if opted to show. #} + + {# category, if opted to show. #} + + {# bill, if opted to show#} + + {% endfor %}
{{ trans('list.description') }}{{ trans('list.amount') }}{{ trans('list.amount') }}
- - {% if transaction.transaction_description|length > 0 %} - {{ transaction.transaction_description }} ({{ transaction.description }}) - {% else %} - {{ transaction.description }} - {% endif %} + {# description #} + + {# is reconciled? #} + {{ transaction|transactionReconciled }} + + + {{ transaction|transactionDescription }} + {# is a split journal #} {{ transaction|transactionIsSplit }} - {% if transaction.transactionJournal.attachments|length > 0 %} - - {% endif %} - - - {{ transaction|transactionAmount }} - + {# count attachments #} + {{ transaction|transactionHasAtt }} + {{ transaction|transactionAmount }}