summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics_reporting/templates/columnChooser.html
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/statistics_reporting/templates/columnChooser.html')
-rw-r--r--modules-available/statistics_reporting/templates/columnChooser.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules-available/statistics_reporting/templates/columnChooser.html b/modules-available/statistics_reporting/templates/columnChooser.html
index 513bc36b..cfaf086c 100644
--- a/modules-available/statistics_reporting/templates/columnChooser.html
+++ b/modules-available/statistics_reporting/templates/columnChooser.html
@@ -159,9 +159,12 @@
var cutoff = getQueryVariable("cutoff");
$('#select-cutoff').val(cutoff ? cutoff : 7);
- sessionStorage.getItem("buttons").split(" ").forEach(function(button) {
- toggleButton(button.substr(7));
- });
+ var buttons = sessionStorage.getItem("buttons");
+ if (buttons) {
+ buttons.split(" ").forEach(function (button) {
+ toggleButton(button.substr(7));
+ });
+ }
}
function getQueryVariable(variable)