Created
February 2, 2011 23:42
-
-
Save DavidQL/808747 to your computer and use it in GitHub Desktop.
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
// 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