summaryrefslogtreecommitdiffstats
path: root/hyperkitty/static/js/hyperkitty.js
diff options
context:
space:
mode:
Diffstat (limited to 'hyperkitty/static/js/hyperkitty.js')
-rw-r--r--hyperkitty/static/js/hyperkitty.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/hyperkitty/static/js/hyperkitty.js b/hyperkitty/static/js/hyperkitty.js
index 13d3f8b..1bb6719 100644
--- a/hyperkitty/static/js/hyperkitty.js
+++ b/hyperkitty/static/js/hyperkitty.js
@@ -213,9 +213,9 @@ function setup_quotes() {
}
function setup_months_list() {
- var accordion = $("#months-list").accordion({
- active: $("#months-list li.current").parent().prev()
- });
+ var current = $("#months-list li.current").parent().prev();
+ if (!current.length) { current = 0; } // overview
+ $("#months-list").accordion({ active: current });
}