subscribe toggle thingie

This commit is contained in:
Sanj 2012-01-13 00:19:01 +05:30
parent b9a1d1ec89
commit 23f11bac52
2 changed files with 13 additions and 1 deletions

View File

@ -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;

View File

@ -15,7 +15,7 @@
<!--<p id="emailerDescription">A fortnightly theatre e-journal from the India Theatre Forum<br>Co-Editors: Vikram Iyengar, Joyoti Roy</p>EMAILER DESCRIPTION CLOSING -->
<ul id="navEmailer">
<li><a href="#subscribe">Subscribe |</a></li>
<li><a href="#subscribe" class="toggleBtn" data-toggle="subscribeForm">Subscribe |</a></li>
<li><a href="#comments">Feedback </a></li>
<!--<li><a href="">Bulletin Board |</a></li>
<li><a href="">Links</a></li>-->
@ -159,3 +159,4 @@ association of theatre people coming together in the larger interests of theatre
</div>