Created
August 8, 2012 08:52
-
-
Save PelnaE/3293594 to your computer and use it in GitHub Desktop.
After closing #message_content, I can't open it =(
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
$(".subject").click( function() { | |
var message_id = $(".subject").data("message-id"); | |
if ($("#message_content").html() == ''){ | |
$.get("/friends_com/messages/view/"+message_id+"", function(data) { | |
$("#message_content").fadeIn('slow', function() { | |
$("#message_content").html(data); | |
}) | |
}); | |
} else { | |
$("#message_content").fadeOut(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment