diff --git a/resources/views/reports/chart_builder.blade.php b/resources/views/reports/chart_builder.blade.php index caedeb10e7db..6c1831769660 100644 --- a/resources/views/reports/chart_builder.blade.php +++ b/resources/views/reports/chart_builder.blade.php @@ -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); + } }); })