mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Remember last used report
This commit is contained in:
parent
0bdcc50e5a
commit
fa4ab4bf9a
@ -261,6 +261,9 @@
|
||||
} else {
|
||||
$('#statusField').fadeOut();
|
||||
}
|
||||
if (isStorageSupported()) {
|
||||
localStorage.setItem('last:report_type', val);
|
||||
}
|
||||
});
|
||||
|
||||
$(function(){
|
||||
@ -295,6 +298,11 @@
|
||||
theme: 'bootstrap',
|
||||
widgets: ['zebra', 'uitheme'],
|
||||
}).show();
|
||||
|
||||
var lastReportType = localStorage.getItem('last:report_type');
|
||||
if (lastReportType) {
|
||||
$('#report_type').val(lastReportType);
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user