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:
Nicolas Stepien 2013-01-20 13:23:49 +01:00
parent bef8de6e70
commit dadbb4e792
3 changed files with 4 additions and 2 deletions

View File

@ -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) {

View File

@ -1,4 +1,6 @@
master
- Mayhem
Fix quoting inside inlined backlinks.
2.37.4
- James Campos

View File

@ -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