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 {
|
} else {
|
||||||
$('#statusField').fadeOut();
|
$('#statusField').fadeOut();
|
||||||
}
|
}
|
||||||
|
if (isStorageSupported()) {
|
||||||
|
localStorage.setItem('last:report_type', val);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(function(){
|
$(function(){
|
||||||
@ -295,6 +298,11 @@
|
|||||||
theme: 'bootstrap',
|
theme: 'bootstrap',
|
||||||
widgets: ['zebra', 'uitheme'],
|
widgets: ['zebra', 'uitheme'],
|
||||||
}).show();
|
}).show();
|
||||||
|
|
||||||
|
var lastReportType = localStorage.getItem('last:report_type');
|
||||||
|
if (lastReportType) {
|
||||||
|
$('#report_type').val(lastReportType);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user