Skip to content

Instantly share code, notes, and snippets.

@ljuti
Created August 19, 2010 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ljuti/538994 to your computer and use it in GitHub Desktop.
Save ljuti/538994 to your computer and use it in GitHub Desktop.
server.bind('entry-posted', function(entry) {
$("#entries").prepend(entry);
$("#entries div.entry:first").fadeIn();
});
server.bind('image-posted', function(image) {
addImage(image);
});
server.bind('entry-removed', function(entry) {
$("#entries #entry-" + entry).remove();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment