This commit is contained in:
James Campos 2011-07-11 08:31:41 -07:00
parent 7912b15f18
commit e374e4515e
2 changed files with 8 additions and 4 deletions

View File

@ -2478,7 +2478,9 @@
init: function() {
return g.callbacks.push(function(root) {
var el, src, thumb;
thumb = $('img[md5]', root);
if (!(thumb = $('img[md5]', root))) {
return;
}
src = thumb.parentNode.href;
return el = $.el('img', {
src: src
@ -2490,7 +2492,9 @@
init: function() {
return g.callbacks.push(function(root) {
var src, thumb;
thumb = $('img[md5]', root);
if (!(thumb = $('img[md5]', root))) {
return;
}
src = thumb.parentNode.href;
if (/gif$/.test(src)) {
return thumb.src = src;

View File

@ -1874,14 +1874,14 @@ imageHover =
imgPreloading =
init: ->
g.callbacks.push (root) ->
thumb = $ 'img[md5]', root
return unless thumb = $ 'img[md5]', root
src = thumb.parentNode.href
el = $.el 'img', { src }
imgGif =
init: ->
g.callbacks.push (root) ->
thumb = $ 'img[md5]', root
return unless thumb = $ 'img[md5]', root
src = thumb.parentNode.href
if /gif$/.test src
thumb.src = src