Skip to content

Firefly III: a personal finances manager

Small language things [skip ci]

James Cole7140ba76d5fb
diff --git a/public/js/ff/reports/index.js b/public/js/ff/reports/index.js
index 295cb659fe..416ae4c144 100644
--- a/public/js/ff/reports/index.js
+++ b/public/js/ff/reports/index.js
@@ -8,7 +8,13 @@
* See the LICENSE file for details.
*/
-/** global: minDate */
+/** global: minDate, nonSelectedText, allSelectedText */
+
+var defaultMultiSelect = {
+ disableIfEmpty: true,
+ nonSelectedText: nonSelectedText,
+ allSelectedText: allSelectedText
+};
$(function () {
"use strict";
@@ -40,7 +46,7 @@ $(function () {
}
// make account select a hip new bootstrap multi-select thing.
- $('#inputAccounts').multiselect();
+ $('#inputAccounts').multiselect(defaultMultiSelect);
// set date:
var startStr = readCookie('report-start');
diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php
index 84cd608220..6d326a1dd2 100644
--- a/resources/lang/en_US/firefly.php
+++ b/resources/lang/en_US/firefly.php
@@ -110,6 +110,9 @@ return [
'clone_deposit' => 'Clone this deposit',
'clone_transfer' => 'Clone this transfer',
'transaction_journal_other_options' => 'Other options',
+ 'multi_select_no_selection' => 'None selected',
+ 'multi_select_all_selected' => 'All selected',
+
// repeat frequencies:
'repeat_freq_yearly' => 'yearly',
diff --git a/resources/views/reports/index.twig b/resources/views/reports/index.twig
index 88f520b41a..16ab2f19dd 100644
--- a/resources/views/reports/index.twig
+++ b/resources/views/reports/index.twig
@@ -213,6 +213,8 @@
<script type="text/javascript">
var minDate = "{{ start.format('m/d/Y') }}";
var picker;
+ var nonSelectedText = "{{ 'multi_select_no_selection'|_ }}";
+ var allSelectedText = "{{ 'multi_select_all_selected'|_ }}";
</script>
<script type="text/javascript" src="js/lib/bootstrap-multiselect.js"></script>