graceful exit instead of erroring out
This commit is contained in:
parent
db73dda4b8
commit
e257da61c9
@ -688,8 +688,10 @@ replyNav = ->
|
|||||||
window.location = "##{op}"
|
window.location = "##{op}"
|
||||||
|
|
||||||
|
|
||||||
#error out if there's no #navtopr.
|
#graceful exit
|
||||||
text = $('#navtopr a').nextSibling
|
unless navtopr = $ '#navtopr a'
|
||||||
|
return
|
||||||
|
text = navtopr.nextSibling
|
||||||
a = tag('a')
|
a = tag('a')
|
||||||
a.textContent = 'X'
|
a.textContent = 'X'
|
||||||
a.className = 'pointer'
|
a.className = 'pointer'
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
(function() {
|
(function() {
|
||||||
var $, $$, BOARD, DAY, PAGENUM, REPLY, _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, a, arr, as, autoWatch, b, board, callback, callbacks, clearHidden, close, config, cutoff, delform, down, el, expandComment, expandThread, favEmpty, favNormal, favicon, getTime, getValue, head, hiddenReplies, hiddenThreads, hide, hideReply, hideThread, html, i, i1, id, iframe, iframeLoad, iframeLoop, img, inAfter, inBefore, input, inputs, l, l1, lastChecked, magic, minimize, mousedown, mousemove, mouseup, move, n, nodeInserted, nop, now, omitted, onloadComment, onloadThread, options, optionsSave, parseResponse, position, quickReply, r, remove, replace, replyNav, report, show, showReply, showThread, slice, span, stopPropagation, submit, tag, text, thread, threadF, threads, up, watch, watchX, watched, watcher, watcherUpdate, x, xhrs;
|
var $, $$, BOARD, DAY, PAGENUM, REPLY, _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, a, arr, as, autoWatch, b, board, callback, callbacks, clearHidden, close, config, cutoff, delform, down, el, expandComment, expandThread, favEmpty, favNormal, favicon, getTime, getValue, head, hiddenReplies, hiddenThreads, hide, hideReply, hideThread, html, i, i1, id, iframe, iframeLoad, iframeLoop, img, inAfter, inBefore, input, inputs, l, l1, lastChecked, magic, minimize, mousedown, mousemove, mouseup, move, n, navtopr, nodeInserted, nop, now, omitted, onloadComment, onloadThread, options, optionsSave, parseResponse, position, quickReply, r, remove, replace, replyNav, report, show, showReply, showThread, slice, span, stopPropagation, submit, tag, text, thread, threadF, threads, up, watch, watchX, watched, watcher, watcherUpdate, x, xhrs;
|
||||||
var __hasProp = Object.prototype.hasOwnProperty;
|
var __hasProp = Object.prototype.hasOwnProperty;
|
||||||
config = {
|
config = {
|
||||||
'Thread Hiding': true,
|
'Thread Hiding': true,
|
||||||
@ -754,7 +754,10 @@
|
|||||||
return (window.location = ("#" + (op)));
|
return (window.location = ("#" + (op)));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
text = $('#navtopr a').nextSibling;
|
if (!(navtopr = $('#navtopr a'))) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
text = navtopr.nextSibling;
|
||||||
a = tag('a');
|
a = tag('a');
|
||||||
a.textContent = 'X';
|
a.textContent = 'X';
|
||||||
a.className = 'pointer';
|
a.className = 'pointer';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user