Merge pull request #363 from MayhemYDG/master

Fixes
This commit is contained in:
James Campos 2011-10-31 09:54:49 -07:00
commit 26e0c44376
2 changed files with 12 additions and 15 deletions

View File

@ -2450,10 +2450,10 @@
_ref = $$('.backlink.inlined:not(.filtered)', table);
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
inlined = _ref[_i];
$.x('ancestor::table[1]', $.id(inlined.hash.slice(1))).hidden = false;
$.x('ancestor::table', $.id(inlined.hash.slice(1))).hidden = false;
}
if (!q.classList.contains('filtered')) {
$.x('ancestor::table[1]', $.id(id)).hidden = false;
if (q.classList.contains('backlink') && !q.classList.contains('filtered')) {
$.x('ancestor::table', $.id(id)).hidden = false;
}
return $.rm(table);
},
@ -3097,11 +3097,6 @@
if (conf['Indicate OP quote']) {
quoteOP.init();
}
if (g.REPLY) {
if (conf['Image Preloading']) {
imgPreloading.init();
}
}
if (d.body) {
return Main.onLoad();
} else {
@ -3143,6 +3138,9 @@
if (conf['Thread Stats']) {
threadStats.init();
}
if (conf['Image Preloading']) {
imgPreloading.init();
}
if (conf['Reply Navigation']) {
nav.init();
}

View File

@ -1835,9 +1835,9 @@ quoteInline =
#select the corresponding table or loading td
table = $.x "following::*[@id='i#{id}']", q
for inlined in $$ '.backlink.inlined:not(.filtered)', table
$.x('ancestor::table[1]', $.id inlined.hash[1..]).hidden = false
unless q.classList.contains 'filtered'
$.x('ancestor::table[1]', $.id id).hidden = false
$.x('ancestor::table', $.id inlined.hash[1..]).hidden = false
if q.classList.contains('backlink') and not q.classList.contains 'filtered'
$.x('ancestor::table', $.id id).hidden = false
$.rm table
parse: (req, pathname, id, threadID, inline) ->
@ -2359,10 +2359,6 @@ Main =
if conf['Indicate OP quote']
quoteOP.init()
if g.REPLY
if conf['Image Preloading']
imgPreloading.init()
if d.body
Main.onLoad()
@ -2404,6 +2400,9 @@ Main =
if conf['Thread Stats']
threadStats.init()
if conf['Image Preloading']
imgPreloading.init()
if conf['Reply Navigation']
nav.init()