fix sauce

This commit is contained in:
James Campos 2011-11-13 10:50:13 -08:00
parent 9da579f216
commit 949ce02984
2 changed files with 3 additions and 1 deletions

View File

@ -2116,8 +2116,9 @@
return prefix.match(/(\w+)\./)[1];
});
return g.callbacks.push(function(root) {
var i, link, prefix, suffix, thumb, _len, _ref, _results;
var i, link, prefix, span, suffix, thumb, _len, _ref, _results;
if (root.className === 'inline' || !(thumb = $('img[md5]', root))) return;
span = $('.filesize', root);
suffix = thumb.src;
_ref = sauce.prefixes;
_results = [];

View File

@ -1651,6 +1651,7 @@ sauce =
sauce.names = sauce.prefixes.map (prefix) -> prefix.match(/(\w+)\./)[1]
g.callbacks.push (root) ->
return if root.className is 'inline' or not thumb = $ 'img[md5]', root
span = $ '.filesize', root
suffix = thumb.src
for prefix, i in sauce.prefixes
link = $.el 'a',