summaryrefslogtreecommitdiffstats
path: root/hyperkitty/static/js/hyperkitty.js
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-01-28 17:20:21 +0100
committerAurélien Bompard <aurelien@bompard.org>2013-01-28 17:20:21 +0100
commit106eaa2cbd1eed1e296d650cb120d1b6e7dd5c21 (patch)
treed55ea87c13548ad545a864d40687437c7389701d /hyperkitty/static/js/hyperkitty.js
parenta4bf2658ce6474c1b8dc2d4f8997d8a4c508a1a3 (diff)
downloadhyperkitty-106eaa2cbd1eed1e296d650cb120d1b6e7dd5c21.tar.gz
hyperkitty-106eaa2cbd1eed1e296d650cb120d1b6e7dd5c21.tar.xz
hyperkitty-106eaa2cbd1eed1e296d650cb120d1b6e7dd5c21.zip
Small fix for the accordion on the overview page
See also: d4ecad9
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 });
}