cs 0.9.5 fixes
This commit is contained in:
parent
7cec7398a1
commit
879275ce84
@ -463,7 +463,7 @@ keydown = (e) ->
|
||||
kc = e.keyCode
|
||||
#https://developer.mozilla.org/en/DOM/Event/UIEvent/KeyEvent
|
||||
# [0-9;=A-Z]
|
||||
unless 48 <= kc <= 90
|
||||
unless (48 <= kc <= 90)
|
||||
g.keyCode = -1
|
||||
else if e.ctrlKey or e.altKey
|
||||
g.keyCode = -1
|
||||
@ -1067,8 +1067,8 @@ else #not reply
|
||||
for el in arr
|
||||
span = n 'span',
|
||||
className: 'navlinks'
|
||||
id: 'p' + _i
|
||||
if _i
|
||||
id: 'p' + _l
|
||||
if _l
|
||||
textContent = '▲'
|
||||
href = "#p#{_i - 1}"
|
||||
else if g.PAGENUM
|
||||
@ -1081,7 +1081,7 @@ else #not reply
|
||||
className: 'pointer'
|
||||
textContent: textContent
|
||||
href: href
|
||||
if _i < l1
|
||||
if _l < l1
|
||||
textContent = '▼'
|
||||
href = "#p#{_i + 1}"
|
||||
else
|
||||
|
||||
@ -603,7 +603,7 @@
|
||||
keydown = function(e) {
|
||||
var kc;
|
||||
kc = e.keyCode;
|
||||
if (48 <= kc && kc > 90) {
|
||||
if (!(48 <= kc && kc <= 90)) {
|
||||
return g.keyCode = -1;
|
||||
} else if (e.ctrlKey || e.altKey) {
|
||||
return g.keyCode = -1;
|
||||
@ -1360,9 +1360,9 @@
|
||||
el = arr[_l];
|
||||
span = n('span', {
|
||||
className: 'navlinks',
|
||||
id: 'p' + _i
|
||||
id: 'p' + _l
|
||||
});
|
||||
if (_i) {
|
||||
if (_l) {
|
||||
textContent = '▲';
|
||||
href = "#p" + (_i - 1);
|
||||
} else if (g.PAGENUM) {
|
||||
@ -1377,7 +1377,7 @@
|
||||
textContent: textContent,
|
||||
href: href
|
||||
});
|
||||
if (_i < l1) {
|
||||
if (_l < l1) {
|
||||
textContent = '▼';
|
||||
href = "#p" + (_i + 1);
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user