fix coffeescript #997
This commit is contained in:
parent
6118fd78ac
commit
5a58b82747
@ -489,6 +489,7 @@ keyModeNormal = (e) ->
|
|||||||
if top > 0
|
if top > 0
|
||||||
reply.className = 'replyhl'
|
reply.className = 'replyhl'
|
||||||
break
|
break
|
||||||
|
break
|
||||||
when "K"
|
when "K"
|
||||||
if e.shiftKey
|
if e.shiftKey
|
||||||
if not g.REPLY then [root] = getThread()
|
if not g.REPLY then [root] = getThread()
|
||||||
@ -509,6 +510,7 @@ keyModeNormal = (e) ->
|
|||||||
if bot < height
|
if bot < height
|
||||||
reply.className = 'replyhl'
|
reply.className = 'replyhl'
|
||||||
break
|
break
|
||||||
|
break
|
||||||
when "M"
|
when "M"
|
||||||
if e.shiftKey
|
if e.shiftKey
|
||||||
$("#imageExpand").click()
|
$("#imageExpand").click()
|
||||||
|
|||||||
@ -559,7 +559,7 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
keyModeNormal = function(e) {
|
keyModeNormal = function(e) {
|
||||||
var bot, char, hash, height, href, image, next, prev, qrLink, rect, replies, reply, root, sign, td, thread, top, watchButton, _i, _j, _len, _len2, _results, _results2;
|
var bot, char, hash, height, href, image, next, prev, qrLink, rect, replies, reply, root, sign, td, thread, top, watchButton, _i, _j, _len, _len2;
|
||||||
if (e.ctrlKey || e.altKey) {
|
if (e.ctrlKey || e.altKey) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -609,7 +609,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
replies = $$('td.reply', root);
|
replies = $$('td.reply', root);
|
||||||
_results = [];
|
|
||||||
for (_i = 0, _len = replies.length; _i < _len; _i++) {
|
for (_i = 0, _len = replies.length; _i < _len; _i++) {
|
||||||
reply = replies[_i];
|
reply = replies[_i];
|
||||||
top = reply.getBoundingClientRect().top;
|
top = reply.getBoundingClientRect().top;
|
||||||
@ -618,8 +617,8 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return _results;
|
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case "K":
|
case "K":
|
||||||
if (e.shiftKey) {
|
if (e.shiftKey) {
|
||||||
if (!g.REPLY) {
|
if (!g.REPLY) {
|
||||||
@ -640,7 +639,6 @@
|
|||||||
replies = $$('td.reply', root);
|
replies = $$('td.reply', root);
|
||||||
replies.reverse();
|
replies.reverse();
|
||||||
height = d.body.clientHeight;
|
height = d.body.clientHeight;
|
||||||
_results2 = [];
|
|
||||||
for (_j = 0, _len2 = replies.length; _j < _len2; _j++) {
|
for (_j = 0, _len2 = replies.length; _j < _len2; _j++) {
|
||||||
reply = replies[_j];
|
reply = replies[_j];
|
||||||
bot = reply.getBoundingClientRect().bottom;
|
bot = reply.getBoundingClientRect().bottom;
|
||||||
@ -649,8 +647,8 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return _results2;
|
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case "M":
|
case "M":
|
||||||
if (e.shiftKey) {
|
if (e.shiftKey) {
|
||||||
return $("#imageExpand").click();
|
return $("#imageExpand").click();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user