mirror of https://github.com/zulip/zulip.git
Cleanup / local var in hotkeys
(imported from commit 8df3d84495d0d50b0987037dceb8b16023866119)
This commit is contained in:
parent
49704b84f3
commit
7cb3c05b40
|
@ -129,8 +129,7 @@ $(document).keydown(function(event) {
|
||||||
|
|
||||||
if (event.keyCode == 38 || event.keyCode == 40) { // down or up arrow
|
if (event.keyCode == 38 || event.keyCode == 40) { // down or up arrow
|
||||||
|
|
||||||
p = $("#selected");
|
var tr = $("#selected").closest("tr");
|
||||||
tr = $(p).closest("tr");
|
|
||||||
if (event.keyCode == 40) { // down arrow
|
if (event.keyCode == 40) { // down arrow
|
||||||
// There are probably more verbose but more efficient ways to do this.
|
// There are probably more verbose but more efficient ways to do this.
|
||||||
next_zephyr = tr.nextAll(":not(:hidden):first");
|
next_zephyr = tr.nextAll(":not(:hidden):first");
|
||||||
|
|
Loading…
Reference in New Issue