Fix hidden backlinks. Close #141
This commit is contained in:
parent
c5fa5ec963
commit
17d72de36d
@ -1792,14 +1792,18 @@
|
|||||||
return _results;
|
return _results;
|
||||||
},
|
},
|
||||||
toggle: function(e) {
|
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();
|
e.preventDefault();
|
||||||
id = this.hash.slice(1);
|
id = this.hash.slice(1);
|
||||||
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') {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1427,7 +1427,8 @@ quoteInline =
|
|||||||
$.rm table
|
$.rm table
|
||||||
$.removeClass @, 'inlined'
|
$.removeClass @, 'inlined'
|
||||||
if @className is 'backlink'
|
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
|
return
|
||||||
root = if @parentNode.nodeName is 'FONT' then @parentNode else @nextSibling
|
root = if @parentNode.nodeName is 'FONT' then @parentNode else @nextSibling
|
||||||
if el = d.getElementById id
|
if el = d.getElementById id
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user