zipme/redmine_lightbox — pull request #42 by nettsundere (2012-09-27 15:06:10+00:00)
Title: Chrome pdf viewer fix, configurable image previews

Added jquery_loader (jquery shouldn't be loaded twice)
Fixed directory structure
Fixed chrome pdf-viewer compatibility (issue #19 ) (current chrome cannot load the pdf document if its content-disposition header is set to "attachment". It's a bug (They should, at least, ask user to download it). Pdf with "inline" content-disposition is ok.
Disabled navigation for pdf documents (With this patch you can use your pdf-viewer features)
Fixed preview image sizing method (now they cannot stretch too long)
Added ability to disable previews for the images via plugin settings

---

Tested with redmine-1.4

Maybe you can use some of this changes