Fixes a mistake in the video switching shortcuts.

This commit is contained in:
fo 2014-09-15 15:44:02 +03:00
parent 69c576b1d9
commit 770f07c470
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ var KeyboardShortcut = (function(my) {
shortcuts[keycode].function(); shortcuts[keycode].function();
} else if (keycode >= "0".charCodeAt(0) && keycode <= "9".charCodeAt(0)) { } else if (keycode >= "0".charCodeAt(0) && keycode <= "9".charCodeAt(0)) {
var remoteVideos = $(".videocontainer:not(#mixedstream)"), var remoteVideos = $(".videocontainer:not(#mixedstream)"),
videoWanted = (keycode - "0".charCodeAt(0) + 1) % 10; videoWanted = keycode - "0".charCodeAt(0) + 1;
if (remoteVideos.length > videoWanted) { if (remoteVideos.length > videoWanted) {
remoteVideos[videoWanted].click(); remoteVideos[videoWanted].click();
} }