don't thread the image controls

This commit is contained in:
James Campos 2010-12-10 09:13:39 -08:00
parent aec52a3c94
commit 1ae95ec174
2 changed files with 9 additions and 3 deletions

View File

@ -1134,9 +1134,11 @@ if g.REPLY
else #not reply
if getConfig 'Thread Hiding'
delform = $('form[name=delform]')
first = $ 'form[name=delform] > *'
start = first.nextSibling if getConfig 'Image Expansion'
#don't confuse other scripts
d.addEventListener('DOMNodeInserted', stopPropagation, true)
threadF(delform.firstChild)
threadF start
d.removeEventListener('DOMNodeInserted', stopPropagation, true)
if getConfig 'Auto Watch'

View File

@ -1,5 +1,5 @@
(function() {
var $, $$, AEOS, DAY, a, addTo, arr, as, autoWatch, autohide, b, board, callback, clearHidden, closeQR, config, cooldown, cutoff, d, delform, down, editSauce, el, expand, expandComment, expandThread, formSubmit, g, getConfig, getThread, getTime, hide, hideReply, hideThread, href, html, i, id, iframe, iframeLoad, imageClick, imageExpandClick, imageFull, imageThumb, img, inAfter, inBefore, input, inputs, keydown, keypress, l1, lastChecked, m, n, navbotr, navtopr, nodeInserted, now, omitted, onloadComment, onloadThread, options, optionsClose, parseResponse, pathname, qrListener, qrText, quickReply, recaptcha, recaptchaListener, recaptchaReload, redirect, remove, replace, replyNav, report, scroll, show, showReply, showThread, slice, span, src, stopPropagation, temp, text, textContent, thread, threadF, threads, tn, tzOffset, up, watch, watchX, watcher, watcherUpdate, x, zeroPad, _, _base, _fn, _i, _j, _k, _l, _len, _len2, _len3, _len4, _len5, _len6, _m, _ref, _ref2, _ref3, _ref4;
var $, $$, AEOS, DAY, a, addTo, arr, as, autoWatch, autohide, b, board, callback, clearHidden, closeQR, config, cooldown, cutoff, d, delform, down, editSauce, el, expand, expandComment, expandThread, first, formSubmit, g, getConfig, getThread, getTime, hide, hideReply, hideThread, href, html, i, id, iframe, iframeLoad, imageClick, imageExpandClick, imageFull, imageThumb, img, inAfter, inBefore, input, inputs, keydown, keypress, l1, lastChecked, m, n, navbotr, navtopr, nodeInserted, now, omitted, onloadComment, onloadThread, options, optionsClose, parseResponse, pathname, qrListener, qrText, quickReply, recaptcha, recaptchaListener, recaptchaReload, redirect, remove, replace, replyNav, report, scroll, show, showReply, showThread, slice, span, src, start, stopPropagation, temp, text, textContent, thread, threadF, threads, tn, tzOffset, up, watch, watchX, watcher, watcherUpdate, x, zeroPad, _, _base, _fn, _i, _j, _k, _l, _len, _len2, _len3, _len4, _len5, _len6, _m, _ref, _ref2, _ref3, _ref4;
var __slice = Array.prototype.slice, __indexOf = Array.prototype.indexOf || function(item) {
for (var i = 0, l = this.length; i < l; i++) {
if (this[i] === item) return i;
@ -1470,8 +1470,12 @@
} else {
if (getConfig('Thread Hiding')) {
delform = $('form[name=delform]');
first = $('form[name=delform] > *');
if (getConfig('Image Expansion')) {
start = first.nextSibling;
}
d.addEventListener('DOMNodeInserted', stopPropagation, true);
threadF(delform.firstChild);
threadF(start);
d.removeEventListener('DOMNodeInserted', stopPropagation, true);
}
if (getConfig('Auto Watch')) {