Skip to content

Instantly share code, notes, and snippets.

@PelnaE
Created August 8, 2012 08:52
Show Gist options
  • Save PelnaE/3293594 to your computer and use it in GitHub Desktop.
Save PelnaE/3293594 to your computer and use it in GitHub Desktop.
After closing #message_content, I can't open it =(
$(".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