Fix quoting inside inlined backlinks. Fix #900
Well that's interesting: selectors with Element.querySelector|All will search for corresponding elements inside the whole document, and will only return elements that are inside your given root element.
This commit is contained in:
parent
bef8de6e70
commit
dadbb4e792
@ -1787,7 +1787,7 @@
|
||||
return $.on(d, 'dragstart dragend', QR.drag);
|
||||
},
|
||||
node: function(post) {
|
||||
return $.on($('.postInfo a[title="Quote this post"]', post.el), 'click', QR.quote);
|
||||
return $.on($('a[title="Quote this post"]', $('.postInfo', post.el)), 'click', QR.quote);
|
||||
},
|
||||
open: function() {
|
||||
if (QR.el) {
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
master
|
||||
- Mayhem
|
||||
Fix quoting inside inlined backlinks.
|
||||
|
||||
2.37.4
|
||||
- James Campos
|
||||
|
||||
@ -1380,7 +1380,7 @@ QR =
|
||||
$.on d, 'dragstart dragend', QR.drag
|
||||
|
||||
node: (post) ->
|
||||
$.on $('.postInfo a[title="Quote this post"]', post.el), 'click', QR.quote
|
||||
$.on $('a[title="Quote this post"]', $('.postInfo', post.el)), 'click', QR.quote
|
||||
|
||||
open: ->
|
||||
if QR.el
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user