Use full pictures for sauce

This commit is contained in:
Nicolas Stepien 2011-11-24 00:40:43 +01:00
parent fdf205298b
commit fc15e91749
2 changed files with 5 additions and 7 deletions

View File

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

View File

@ -1649,9 +1649,8 @@ sauce =
sauce.prefixes = conf['flavors'].match /^[^#].+$/gm sauce.prefixes = conf['flavors'].match /^[^#].+$/gm
sauce.names = sauce.prefixes.map (prefix) -> prefix.match(/(\w+)\./)[1] sauce.names = sauce.prefixes.map (prefix) -> prefix.match(/(\w+)\./)[1]
g.callbacks.push (root) -> g.callbacks.push (root) ->
return if root.className is 'inline' or not thumb = $ 'img[md5]', root return if root.className is 'inline' or not span = $ '.filesize', root
span = $ '.filesize', root suffix = $('a', span).href
suffix = thumb.src
for prefix, i in sauce.prefixes for prefix, i in sauce.prefixes
link = $.el 'a', link = $.el 'a',
textContent: sauce.names[i] textContent: sauce.names[i]