Created
June 17, 2010 22:44
-
-
Save aaronmcadam/442905 to your computer and use it in GitHub Desktop.
smart_toggle not used on NM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.sound a').toggle(function(e) { | |
$("#slider-horizontal").css('margin', '10px').slideDown('fast'); | |
// Deactivate any actively toggled elements first: | |
// $(this).closest("div.podcast").each(ACTIVATE).siblings("div.podcast").each(DEACTIVATE) | |
$('.slider-vertical').eq(index).each(function(){ $(this).css('margin', '10px').slideDown('fast'); }) | |
.siblings('.slider-vertical').each(function(){ $(this).slideUp('fast'); }); | |
e.preventDefault(); | |
}, function(e) { | |
$("#slider-horizontal").slideUp('fast'); | |
e.preventDefault(); | |
}); |
This needs improving so that it works for the first click on an element also.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
toggle idea ( not used on the NM podcast player)