From e2540662cf571115af2b38715b7efa0a2f7f1d77 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 28 Sep 2011 17:16:08 +0530 Subject: [PATCH] some classes, toggleNext --- itf/static/js/insidepage.js | 14 ++++++++++++-- itf/templates/modules/festival/meeting.html | 4 ++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/itf/static/js/insidepage.js b/itf/static/js/insidepage.js index 73f5a4e..4fd37e5 100644 --- a/itf/static/js/insidepage.js +++ b/itf/static/js/insidepage.js @@ -19,6 +19,16 @@ $('#listLeft ul li a').live("click", function() { return false; }); +$('.toggleNext').live("click", function(e) { + e.preventDefault(); + var $next = $(this).next(); + if (!$next.is(":visible")) { + $next.slideDown(); + } else { + $next.slideUp(); + } +}); + /* Get a jquery