Skip to content

Instantly share code, notes, and snippets.

@tbisaacs
Created May 4, 2013 20:54
Show Gist options
  • Save tbisaacs/5518697 to your computer and use it in GitHub Desktop.
Save tbisaacs/5518697 to your computer and use it in GitHub Desktop.
$(document).on('fastclick', 'a[data-seenit]', function(evt){
var key = $(this).attr('data-seenit');
var after = $(this).attr('data-after-seenit-id')
$("[data-seenit-target=" + key + "]").fadeOut();
$.ajax('/seenit', {
type : 'post',
data : {
key : key
}
});
if(after){
$('#' + after).fadeIn();
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment