Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored code to support multiple instances of lightbox on the same…
… page, each with unique options. Most lightbox methods are now private. Keyboard events are handled using jquery. Fixed bug: keyboard navigation doesn't work correctly with loopImages true. Fixed bug: imageClickClose doesn't have effect on single image lightbox. Added support for JSON. Lightbox images can now be supplied via jsonData option, accepts array of objects in JSON notation ({url, title}). How this works can be seen in the included examples (index.html). Added public method $.fn.lightbox.parseJsonData. Takes JSON data from jsonData parameter and converts it into imageArray for use internally. Can be overridden to support alternate JSON scheme or even data formats other than JSON. Signed-off-by: Warren Krewenki <krewenki@gmail.com>
- Loading branch information