Fix backlink inlining removing its container.

This commit is contained in:
Nicolas Stepien 2011-07-24 17:42:27 +02:00
parent fae315d2c9
commit 2c2aa309c7
3 changed files with 5 additions and 0 deletions

View File

@ -2048,6 +2048,9 @@
if (el = d.getElementById(id)) {
inline = quoteInline.table(id, el.innerHTML);
if (this.className === 'backlink') {
if ($("a.backlink[href='#" + id + "']", el)) {
return;
}
$.after(this.parentNode, inline);
$.hide($.x('ancestor::table[1]', el));
} else {

View File

@ -4,6 +4,7 @@ github
- fix remember updater's interval settings
- fix wrong keybind input in options
- fix time preview
- fix backlink inlining removing its container
2.16.1
- mayhem:

View File

@ -1592,6 +1592,7 @@ quoteInline =
if el = d.getElementById id
inline = quoteInline.table id, el.innerHTML
if @className is 'backlink'
return if $("a.backlink[href='##{id}']", el)
$.after @parentNode, inline
$.hide $.x 'ancestor::table[1]', el
else