Small language things [skip ci]

This commit is contained in:
James Cole 2017-01-24 07:53:46 +01:00
parent 872e8f2de6
commit 7140ba76d5
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
3 changed files with 13 additions and 2 deletions

View File

@ -8,7 +8,13 @@
* See the LICENSE file for details. * See the LICENSE file for details.
*/ */
/** global: minDate */ /** global: minDate, nonSelectedText, allSelectedText */
var defaultMultiSelect = {
disableIfEmpty: true,
nonSelectedText: nonSelectedText,
allSelectedText: allSelectedText
};
$(function () { $(function () {
"use strict"; "use strict";
@ -40,7 +46,7 @@ $(function () {
} }
// make account select a hip new bootstrap multi-select thing. // make account select a hip new bootstrap multi-select thing.
$('#inputAccounts').multiselect(); $('#inputAccounts').multiselect(defaultMultiSelect);
// set date: // set date:
var startStr = readCookie('report-start'); var startStr = readCookie('report-start');

View File

@ -110,6 +110,9 @@ return [
'clone_deposit' => 'Clone this deposit', 'clone_deposit' => 'Clone this deposit',
'clone_transfer' => 'Clone this transfer', 'clone_transfer' => 'Clone this transfer',
'transaction_journal_other_options' => 'Other options', 'transaction_journal_other_options' => 'Other options',
'multi_select_no_selection' => 'None selected',
'multi_select_all_selected' => 'All selected',
// repeat frequencies: // repeat frequencies:
'repeat_freq_yearly' => 'yearly', 'repeat_freq_yearly' => 'yearly',

View File

@ -213,6 +213,8 @@
<script type="text/javascript"> <script type="text/javascript">
var minDate = "{{ start.format('m/d/Y') }}"; var minDate = "{{ start.format('m/d/Y') }}";
var picker; var picker;
var nonSelectedText = "{{ 'multi_select_no_selection'|_ }}";
var allSelectedText = "{{ 'multi_select_all_selected'|_ }}";
</script> </script>
<script type="text/javascript" src="js/lib/bootstrap-multiselect.js"></script> <script type="text/javascript" src="js/lib/bootstrap-multiselect.js"></script>