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,13 +1880,11 @@
if (table = $("#i" + id, $.x('ancestor::td[1]', this))) { if (table = $("#i" + id, $.x('ancestor::td[1]', this))) {
$.rm(table); $.rm(table);
$.removeClass(this, 'inlined'); $.removeClass(this, 'inlined');
if (this.className === 'backlink') {
_ref = $$('input', table); _ref = $$('input', table);
for (_i = 0, _len = _ref.length; _i < _len; _i++) { for (_i = 0, _len = _ref.length; _i < _len; _i++) {
inlined = _ref[_i]; inlined = _ref[_i];
$.show($.x('ancestor::table[1]', d.getElementById(inlined.name))); $.show($.x('ancestor::table[1]', d.getElementById(inlined.name)));
} }
}
return; return;
} }
root = this.parentNode.nodeName === 'FONT' ? this.parentNode : this.nextSibling; root = this.parentNode.nodeName === 'FONT' ? this.parentNode : this.nextSibling;

View File

@ -1475,7 +1475,6 @@ quoteInline =
if table = $ "#i#{id}", $.x 'ancestor::td[1]', @ if table = $ "#i#{id}", $.x 'ancestor::td[1]', @
$.rm table $.rm table
$.removeClass @, 'inlined' $.removeClass @, 'inlined'
if @className is 'backlink'
for inlined in $$ 'input', table for inlined in $$ 'input', table
$.show $.x 'ancestor::table[1]', d.getElementById inlined.name $.show $.x 'ancestor::table[1]', d.getElementById inlined.name
return return