Fix Sauces. NBSPs seem to be necessary.

This commit is contained in:
Nicolas Stepien 2012-04-29 14:26:46 +02:00
parent 1cdac37ecf
commit f22ea17429
2 changed files with 7 additions and 6 deletions

View File

@ -2762,7 +2762,7 @@
case '$2':
return "' + img.href + '";
case '$3':
return "' + img.firstChild.getAttribute('md5').replace(/\=*$/, '') + '";
return "' + img.firstChild.dataset.md5.replace(/\=*$/, '') + '";
case '$4':
return g.BOARD;
}
@ -2790,9 +2790,9 @@
_ref = Sauce.links;
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
link = _ref[_i];
nodes.push($.tn(' '), link(img));
nodes.push($.tn('\u00A0'), link(img));
}
return $.add(post.filesize, nodes);
return $.add(post.fileinfo, nodes);
}
};

View File

@ -2193,7 +2193,7 @@ Sauce =
when '$2'
"' + img.href + '"
when '$3'
"' + img.firstChild.getAttribute('md5').replace(/\=*$/, '') + '"
"' + img.firstChild.dataset.md5.replace(/\=*$/, '') + '"
when '$4'
g.BOARD
href = Function 'img', "return '#{href}'"
@ -2211,8 +2211,9 @@ Sauce =
img = img.parentNode
nodes = []
for link in Sauce.links
nodes.push $.tn(' '), link img
$.add post.filesize, nodes
# \u00A0 is nbsp
nodes.push $.tn('\u00A0'), link img
$.add post.fileinfo, nodes
RevealSpoilers =
init: ->