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': case '$2':
return "' + img.href + '"; return "' + img.href + '";
case '$3': case '$3':
return "' + img.firstChild.getAttribute('md5').replace(/\=*$/, '') + '"; return "' + img.firstChild.dataset.md5.replace(/\=*$/, '') + '";
case '$4': case '$4':
return g.BOARD; return g.BOARD;
} }
@ -2790,9 +2790,9 @@
_ref = Sauce.links; _ref = Sauce.links;
for (_i = 0, _len = _ref.length; _i < _len; _i++) { for (_i = 0, _len = _ref.length; _i < _len; _i++) {
link = _ref[_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' when '$2'
"' + img.href + '" "' + img.href + '"
when '$3' when '$3'
"' + img.firstChild.getAttribute('md5').replace(/\=*$/, '') + '" "' + img.firstChild.dataset.md5.replace(/\=*$/, '') + '"
when '$4' when '$4'
g.BOARD g.BOARD
href = Function 'img', "return '#{href}'" href = Function 'img', "return '#{href}'"
@ -2211,8 +2211,9 @@ Sauce =
img = img.parentNode img = img.parentNode
nodes = [] nodes = []
for link in Sauce.links for link in Sauce.links
nodes.push $.tn(' '), link img # \u00A0 is nbsp
$.add post.filesize, nodes nodes.push $.tn('\u00A0'), link img
$.add post.fileinfo, nodes
RevealSpoilers = RevealSpoilers =
init: -> init: ->