mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-04 13:16:31 +00:00
Hip new multi select.
This commit is contained in:
@@ -26,6 +26,7 @@ $(function () {
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
// set values from cookies, if any:
|
||||
if (!(readCookie('report-type') === null)) {
|
||||
$('select[name="report_type"]').val(readCookie('report-type'));
|
||||
@@ -34,10 +35,13 @@ $(function () {
|
||||
if ((readCookie('report-accounts') !== null)) {
|
||||
var arr = readCookie('report-accounts').split(',');
|
||||
arr.forEach(function (val) {
|
||||
$('input[class="account-checkbox"][type="checkbox"][value="' + val + '"]').prop('checked', true);
|
||||
$('#inputAccounts').find('option[value="' + val + '"]').prop('selected', true);
|
||||
});
|
||||
}
|
||||
|
||||
// make account select a hip new bootstrap multi-select thing.
|
||||
$('#inputAccounts').multiselect();
|
||||
|
||||
// set date:
|
||||
var startStr = readCookie('report-start');
|
||||
var endStr = readCookie('report-end');
|
||||
|
||||
Reference in New Issue
Block a user