Skip lightbox when clicking (non-cubbies) images in IE. Just open the image in a new tab.

This is because the lightbox doesn't work in IE.
This commit is contained in:
Pistos 2011-11-08 23:51:28 -05:00
parent d9cbd32d88
commit c592997fce

View file

@ -94,6 +94,12 @@ jQuery.fn.center = (function() {
images = selectedImage.parents('.stream_element').find('img.stream-photo'), images = selectedImage.parents('.stream_element').find('img.stream-photo'),
imageThumb; imageThumb;
if( $.browser.msie ) {
/* No fancy schmancy lightbox for IE, because it doesn't work in IE */
window.open(imageUrl);
return;
}
self.imageset.html(""); self.imageset.html("");
images.each(function(index, image) { images.each(function(index, image) {
image = $(image); image = $(image);