lokesh/lightbox2 — pull request #369 by ngonhan2k5 (2014-12-31 08:30:21+00:00)
Title: Callback on click

Allow "lightbox" on selected jquery objects with a callback.
Solving own request #350 , and may be help #285 , #329
Using example:

$("img[rel='lbx']").lightbox(function($obj){
return $obj.attr('src').replace('/thumbnail/','/');
});