Skip to content

Instantly share code, notes, and snippets.

@DavidQL
Created February 2, 2011 23:42
Show Gist options
  • Save DavidQL/808746 to your computer and use it in GitHub Desktop.
Save DavidQL/808746 to your computer and use it in GitHub Desktop.
// following code is simplified from actual implementation.
$('#portfolios .gallery').live('click',function(e) {
VS.lightbox.init();
var folio_path = '/portfolio/'+$(this).data('id');
$.ajax({
type: 'GET',
url: folio_path,
success: function(data) {
VS.lightbox.addContent(data);
},
error: function(data) {
// error
}
});
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment