Update date handling in finances and enhance layout with new script inclusion

This commit is contained in:
2024-12-02 15:43:17 +01:00
parent 2e994f9abc
commit bf5c0f94c9
4 changed files with 21 additions and 2 deletions

View File

@@ -331,7 +331,9 @@ $(function() {
});
$('body').on('change', '.date-range', function() {
document.location.href = '/finances/main_view/dates=' + $(this).val();
// replace spaces
var date = $(this).val().replace(/ /g, '_');
document.location.href = '/finances/main_view/dates=' + date;
});
jQuery('body').on('click', '.date-range-icon', function() {