Created
May 29, 2012 01:57
-
-
Save crm114/2822117 to your computer and use it in GitHub Desktop.
This file contains 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
function expand() { | |
$(this).hide(); | |
var parent; | |
parent = $(this).parents(".span4"); | |
console.log(parent); | |
$(parent).contents().find("a.collapse-translation").show(); | |
$(parent).css("height", "auto"); | |
$(parent).children(".extra-content").slideDown(); | |
return false; | |
}; | |
function collapse() { | |
var parent; | |
$(this).hide(); | |
parent = $(this).parents(".span4"); | |
console.log(parent); | |
$(parent).contents().find("a.expand-translation").show(); | |
$(parent).children(".extra-content").slideUp('slow', function() { | |
$(parent).css("height", "150px"); | |
}); | |
return false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment