Remember last used report
This commit is contained in:
parent
0bdcc50e5a
commit
fa4ab4bf9a
1 changed files with 8 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue