nav todo, remove reply nav

This commit is contained in:
James Campos 2011-04-09 00:21:30 -07:00
parent b1b46f6d90
commit 34c53d5819
2 changed files with 1 additions and 42 deletions

View File

@ -82,7 +82,6 @@
'Quick Reply': [true, 'Reply without leaving the page'],
'Quick Report': [true, 'Add quick report buttons'],
'Reply Hiding': [true, 'Hide single replies'],
'Reply Navigation': [false, 'Navigate to the beginning / end of a thread'],
'Sauce': [true, 'Add sauce to images'],
'Show Stubs': [true, 'Of hidden threads / replies'],
'Thread Expansion': [true, 'View all replies'],
@ -2119,30 +2118,6 @@
return _results;
});
}
if ($.config('Reply Navigation')) {
g.callbacks.push(function(root) {
var arr, down, el, span, up, _i, _len, _results;
arr = $$('span[id^=norep]', root);
_results = [];
for (_i = 0, _len = arr.length; _i < _len; _i++) {
el = arr[_i];
span = $.el('span');
up = $.el('a', {
textContent: '▲',
className: 'pointer'
});
$.bind(up, 'click', replyNav);
down = $.el('a', {
textContent: '▼',
className: 'pointer'
});
$.bind(down, 'click', replyNav);
$.append(span, $.tn(' '), up, $.tn(' '), down);
_results.push($.after(el, span));
}
return _results;
});
}
if ($.config('Keybinds')) {
$.bind(d, 'keydown', keydown);
$.bind(d, 'keypress', keypress);

View File

@ -24,7 +24,6 @@ config =
'Quick Reply': [true, 'Reply without leaving the page']
'Quick Report': [true, 'Add quick report buttons']
'Reply Hiding': [true, 'Hide single replies']
'Reply Navigation': [false, 'Navigate to the beginning / end of a thread']
'Sauce': [true, 'Add sauce to images']
'Show Stubs': [true, 'Of hidden threads / replies']
'Thread Expansion': [true, 'View all replies']
@ -611,6 +610,7 @@ keyModeNormal = (e) ->
watch.call watchButton
nav =
#TODO page nav
#
init: ->
span = $.el 'span',
@ -1673,22 +1673,6 @@ if $.config 'Anonymize'
else
$.remove trip
if $.config 'Reply Navigation'
g.callbacks.push (root) ->
arr = $$('span[id^=norep]', root)
for el in arr
span = $.el 'span'
up = $.el 'a',
textContent: ''
className: 'pointer'
$.bind up, 'click', replyNav
down = $.el 'a',
textContent: ''
className: 'pointer'
$.bind down, 'click', replyNav
$.append span, $.tn(' '), up, $.tn(' '), down
$.after el, span
if $.config 'Keybinds'
$.bind d, 'keydown', keydown
$.bind d, 'keypress', keypress