Fix missing parentheses in auto-gif. Close #245

This commit is contained in:
Nicolas Stepien 2012-02-19 17:26:19 +01:00
parent 311101297c
commit e2051be615
2 changed files with 2 additions and 2 deletions

View File

@ -3339,7 +3339,7 @@
var src, thumb;
if (root.hidden || !(thumb = $('img[md5]', root))) return;
src = thumb.parentNode.href;
if (/gif$/.test(src && !/^Spoiler/.test(thumb.alt))) return thumb.src = src;
if (/gif$/.test(src) && !/^Spoiler/.test(thumb.alt)) return thumb.src = src;
}
};

View File

@ -2630,7 +2630,7 @@ imgGif =
node: (root) ->
return if root.hidden or !thumb = $ 'img[md5]', root
src = thumb.parentNode.href
if /gif$/.test src and !/^Spoiler/.test thumb.alt
if /gif$/.test(src) and !/^Spoiler/.test thumb.alt
thumb.src = src
imgExpand =