Fix #446
This commit is contained in:
parent
e3b5645726
commit
216a05f9b4
@ -3120,7 +3120,10 @@
|
|||||||
},
|
},
|
||||||
add: function(q, id) {
|
add: function(q, id) {
|
||||||
var clonePost, el, i, inline, pathname, root;
|
var clonePost, el, i, inline, pathname, root;
|
||||||
root = $.x('ancestor::*[parent::blockquote]', q);
|
root = q;
|
||||||
|
while (root.parentNode.nodeName !== 'BLOCKQUOTE') {
|
||||||
|
root = root.parentNode;
|
||||||
|
}
|
||||||
if (el = $.id("p" + id)) {
|
if (el = $.id("p" + id)) {
|
||||||
if (/\bop\b/.test(el.className)) {
|
if (/\bop\b/.test(el.className)) {
|
||||||
$.removeClass(el.parentNode, 'qphl');
|
$.removeClass(el.parentNode, 'qphl');
|
||||||
|
|||||||
@ -2402,8 +2402,12 @@ QuoteInline =
|
|||||||
@classList.toggle 'inlined'
|
@classList.toggle 'inlined'
|
||||||
|
|
||||||
add: (q, id) ->
|
add: (q, id) ->
|
||||||
root = $.x 'ancestor::*[parent::blockquote]', q
|
# Can't use this because Firefox a shit:
|
||||||
if el = $.id "p#{id}"
|
# root = $.x 'ancestor::*[parent::blockquote]', q
|
||||||
|
root = q
|
||||||
|
while root.parentNode.nodeName isnt 'BLOCKQUOTE'
|
||||||
|
root = root.parentNode
|
||||||
|
if el = $.id "p#{id}"
|
||||||
if /\bop\b/.test el.className
|
if /\bop\b/.test el.className
|
||||||
$.removeClass el.parentNode, 'qphl'
|
$.removeClass el.parentNode, 'qphl'
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user