Fix post number quoting for /b/ and /v/.
This commit is contained in:
parent
53405d085f
commit
2fa4e4d81e
@ -1348,7 +1348,7 @@
|
|||||||
if (!g.REPLY) {
|
if (!g.REPLY) {
|
||||||
$('select', qr.el).value = $.x('ancestor::div[@class="thread"]/div', this).id;
|
$('select', qr.el).value = $.x('ancestor::div[@class="thread"]/div', this).id;
|
||||||
}
|
}
|
||||||
id = this.textContent;
|
id = this.hash.slice(2);
|
||||||
text = ">>" + id + "\n";
|
text = ">>" + id + "\n";
|
||||||
sel = window.getSelection();
|
sel = window.getSelection();
|
||||||
if ((s = sel.toString()) && id === ((_ref = $.x('ancestor-or-self::blockquote/preceding-sibling::input', sel.anchorNode)) != null ? _ref.name : void 0)) {
|
if ((s = sel.toString()) && id === ((_ref = $.x('ancestor-or-self::blockquote/preceding-sibling::input', sel.anchorNode)) != null ? _ref.name : void 0)) {
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
master
|
master
|
||||||
|
- Mayhem
|
||||||
|
Fix post number quoting on /b/ and /v/.
|
||||||
|
|
||||||
2.26.1
|
2.26.1
|
||||||
- Mayhem
|
- Mayhem
|
||||||
|
|||||||
@ -996,7 +996,8 @@ qr =
|
|||||||
unless g.REPLY
|
unless g.REPLY
|
||||||
$('select', qr.el).value = $.x('ancestor::div[@class="thread"]/div', @).id
|
$('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"
|
text = ">>#{id}\n"
|
||||||
|
|
||||||
sel = window.getSelection()
|
sel = window.getSelection()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user