From 106eaa2cbd1eed1e296d650cb120d1b6e7dd5c21 Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Mon, 28 Jan 2013 17:20:21 +0100 Subject: Small fix for the accordion on the overview page See also: d4ecad9 --- hyperkitty/static/js/hyperkitty.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hyperkitty/static/js/hyperkitty.js') 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 }); } -- cgit