Find this function on line 124 (colorbox 1.3.15)
// Checks an href to see if it is a photo. // There is a force photo option (photo: true) for hrefs that cannot be matched by this regex. function isImage(url) { return settings.photo || /\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(url); }
On line 127, add |ashx after bmp to (gif|png|jpg|jpeg|bmp) so it reads like this:
// Checks an href to see if it is a photo. // There is a force photo option (photo: true) for hrefs that cannot be matched by this regex. function isImage(url) { return settings.photo || /\.(gif|png|jpg|jpeg|bmp|ashx)(?:\?([^#]*))?(?:#(\.*))?$/i.test(url); }
This works great for me in Sitecore 6.2 :)
lukescammell
source share