Fix hidden backlinks. Close #141

This commit is contained in:
Nicolas Stepien 2011-06-03 02:41:40 +02:00
parent c5fa5ec963
commit 17d72de36d
2 changed files with 8 additions and 3 deletions

View File

@ -1792,14 +1792,18 @@
return _results;
},
toggle: function(e) {
var el, id, inline, pathname, root, table, threadID;
var el, id, inline, inlined, pathname, root, table, threadID, _i, _len, _ref;
e.preventDefault();
id = this.hash.slice(1);
if (table = $("#i" + id, $.x('ancestor::td[1]', this))) {
$.rm(table);
$.removeClass(this, 'inlined');
if (this.className === 'backlink') {
$.show($.x('ancestor::table[1]', d.getElementById(id)));
_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

@ -1427,7 +1427,8 @@ quoteInline =
$.rm table
$.removeClass @, 'inlined'
if @className is 'backlink'
$.show $.x 'ancestor::table[1]', d.getElementById id
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