mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Small language things [skip ci]
This commit is contained in:
parent
872e8f2de6
commit
7140ba76d5
@ -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');
|
||||||
|
@ -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',
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user