Fix inlining of OP backlinks, numerical values are okay for xpath selectors.
This commit is contained in:
parent
b58e72d153
commit
7fabaa0659
@ -2394,7 +2394,7 @@
|
|||||||
if (this.classList.contains('inlined')) {
|
if (this.classList.contains('inlined')) {
|
||||||
quoteInline.rm(this, id);
|
quoteInline.rm(this, id);
|
||||||
} else {
|
} else {
|
||||||
if ($.x('ancestor::td[@id]', this).id === id) {
|
if ($.x("ancestor::*[@id='" + id + "']", this)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
quoteInline.add(this, id);
|
quoteInline.add(this, id);
|
||||||
|
|||||||
@ -1789,7 +1789,7 @@ quoteInline =
|
|||||||
if @classList.contains 'inlined'
|
if @classList.contains 'inlined'
|
||||||
quoteInline.rm @, id
|
quoteInline.rm @, id
|
||||||
else
|
else
|
||||||
return if $.x('ancestor::td[@id]', @).id is id
|
return if $.x("ancestor::*[@id='#{id}']", @)
|
||||||
quoteInline.add @, id
|
quoteInline.add @, id
|
||||||
@classList.toggle 'inlined'
|
@classList.toggle 'inlined'
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user