Fix post number quoting for /b/ and /v/.

This commit is contained in:
Nicolas Stepien 2012-02-15 13:32:53 +01:00
parent 53405d085f
commit 2fa4e4d81e
3 changed files with 5 additions and 2 deletions

View File

@ -1348,7 +1348,7 @@
if (!g.REPLY) {
$('select', qr.el).value = $.x('ancestor::div[@class="thread"]/div', this).id;
}
id = this.textContent;
id = this.hash.slice(2);
text = ">>" + id + "\n";
sel = window.getSelection();
if ((s = sel.toString()) && id === ((_ref = $.x('ancestor-or-self::blockquote/preceding-sibling::input', sel.anchorNode)) != null ? _ref.name : void 0)) {

View File

@ -1,4 +1,6 @@
master
- Mayhem
Fix post number quoting on /b/ and /v/.
2.26.1
- Mayhem

View File

@ -996,7 +996,8 @@ qr =
unless g.REPLY
$('select', qr.el).value = $.x('ancestor::div[@class="thread"]/div', @).id
id = @textContent
# Make sure we get the correct number, even with XXX censors
id = @hash[2..]
text = ">>#{id}\n"
sel = window.getSelection()