// small fix when rel of big pic is empty
This commit is contained in:
1 parent
f1c2d431a9
commit
b4547fbd83
1 file changed
+1
-1
@@ -31,7 +31,7 @@
|
|||||||
var imageWidth = $(this).get(0).offsetWidth;
|
var imageWidth = $(this).get(0).offsetWidth;
|
||||||
var imageHeight = $(this).get(0).offsetHeight;
|
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);
|
noalt = $(this).attr(attr);
|
||||||
var bigimage = noalt;
|
var bigimage = noalt;
|
||||||
$(this).attr(attr, '');
|
$(this).attr(attr, '');
|
||||||
|
|||||||
Reference in new issue
Block a user