You can inline backlinks within normal quotes too.

This commit is contained in:
Nicolas Stepien 2011-06-14 23:28:01 +02:00
parent 27a8ba7b70
commit 17976954d8
2 changed files with 6 additions and 9 deletions

View File

@ -1880,12 +1880,10 @@
if (table = $("#i" + id, $.x('ancestor::td[1]', this))) {
$.rm(table);
$.removeClass(this, 'inlined');
if (this.className === 'backlink') {
_ref = $$('input', table);
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
inlined = _ref[_i];
$.show($.x('ancestor::table[1]', d.getElementById(inlined.name)));
}
_ref = $$('input', table);
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
inlined = _ref[_i];
$.show($.x('ancestor::table[1]', d.getElementById(inlined.name)));
}
return;
}

View File

@ -1475,9 +1475,8 @@ quoteInline =
if table = $ "#i#{id}", $.x 'ancestor::td[1]', @
$.rm table
$.removeClass @, 'inlined'
if @className is 'backlink'
for inlined in $$ 'input', table
$.show $.x 'ancestor::table[1]', d.getElementById inlined.name
for inlined in $$ 'input', table
$.show $.x 'ancestor::table[1]', d.getElementById inlined.name
return
root = if @parentNode.nodeName is 'FONT' then @parentNode else @nextSibling
if el = d.getElementById id