// small fix when rel of big pic is empty

This commit is contained in:
gRoussac
2013-05-02 17:06:32 +02:00
parent f1c2d431a9
commit b4547fbd83
+1 -1
View File
@@ -31,7 +31,7 @@
var imageWidth = $(this).get(0).offsetWidth;
var imageHeight = $(this).get(0).offsetHeight;
attr = typeof($(this).attr("rel")) != 'undefined' ? "rel" : "alt";
attr = (typeof($(this).attr("rel")) != 'undefined' && $(this).attr("rel") != '') ? "rel" : "alt";
noalt = $(this).attr(attr);
var bigimage = noalt;
$(this).attr(attr, '');