From b4547fbd83b731a86def677b599ef608e73a0b24 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Thu, 2 May 2013 17:06:32 +0200 Subject: [PATCH] // small fix when rel of big pic is empty --- js/jquery/plugins/jqzoom/jquery.jqzoom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery/plugins/jqzoom/jquery.jqzoom.js b/js/jquery/plugins/jqzoom/jquery.jqzoom.js index d74f8dc1c..8ef27f743 100755 --- a/js/jquery/plugins/jqzoom/jquery.jqzoom.js +++ b/js/jquery/plugins/jqzoom/jquery.jqzoom.js @@ -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, '');