From 23f11bac5253fc065812f8db3c7575c9fe103e66 Mon Sep 17 00:00:00 2001 From: Sanj Date: Fri, 13 Jan 2012 00:19:01 +0530 Subject: [PATCH] subscribe toggle thingie --- itf/static/js/insidepage.js | 11 +++++++++++ itf/templates/modules/emailer/emailerissue.html | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/itf/static/js/insidepage.js b/itf/static/js/insidepage.js index d7be521..d33d6bf 100755 --- a/itf/static/js/insidepage.js +++ b/itf/static/js/insidepage.js @@ -1,5 +1,16 @@ var queryData; +$('.toggleBtn').live("click", function() { + var $this = $(this); + var toggleElem = $('#' + $this.attr("data-toggle")); + if (toggleElem.is(":visible")) { + toggleElem.slideUp(); + } else { + toggleElem.slideDown(); + } +}); + + $('#listLeft ul li a').live("click", function() { if ($(this).hasClass("listLeftSelected")) { return false; diff --git a/itf/templates/modules/emailer/emailerissue.html b/itf/templates/modules/emailer/emailerissue.html index b0f8d7c..c8048af 100755 --- a/itf/templates/modules/emailer/emailerissue.html +++ b/itf/templates/modules/emailer/emailerissue.html @@ -15,7 +15,7 @@