Empty commit

This commit is contained in:
Git 2013-09-03 08:01:00 +00:00
parent f269fa5454
commit 5b80249db6
3 changed files with 19 additions and 2 deletions

View File

@ -10,7 +10,6 @@
*/ */
class MASS_USER_BOOKMARKS_EDITOR extends MASS_USER_TORRENTS_EDITOR { class MASS_USER_BOOKMARKS_EDITOR extends MASS_USER_TORRENTS_EDITOR {
public function __construct ($Table = 'bookmarks_torrents') { public function __construct ($Table = 'bookmarks_torrents') {
parent::__construct();
$this->set_table($Table); $this->set_table($Table);
} }

View File

@ -286,7 +286,7 @@ function header_link($SortKey, $DefaultWay = 'desc') {
// print row // print row
?> ?>
<tr class="torrent torrent_row<?=($TorrentInfo['IsSnatched'] ? ' snatched_torrent' : '') . ($GroupInfo['Flags']['IsSnatched'] ? ' snatched_group' : '')?>" id="torrent<?=$TorrentID?>"<?=($MatchingArtistsText ? 'title="'.display_str($MatchingArtistsText).'"' : '')?>> <tr class="torrent torrent_row<?=($TorrentInfo['IsSnatched'] ? ' snatched_torrent' : '') . ($GroupInfo['Flags']['IsSnatched'] ? ' snatched_group' : '')?>" id="torrent<?=$TorrentID?>"<?=($MatchingArtistsText ? 'title="'.display_str($MatchingArtistsText).'"' : '')?>>
<td style="text-align: center;"><input type="checkbox" class="notify_box notify_box_<?=$FilterID?>" value="<?=$TorrentID?>" id="clear_<?=$TorrentID?>" /></td> <td style="text-align: center;"><input type="checkbox" class="notify_box notify_box_<?=$FilterID?>" value="<?=$TorrentID?>" id="clear_<?=$TorrentID?>" tabindex="1" /></td>
<td class="center cats_col"><div title="<?=$TorrentTags->title()?>"class="<?=Format::css_category($GroupCategoryID)?> <?=$TorrentTags->css_name()?>"></div></td> <td class="center cats_col"><div title="<?=$TorrentTags->title()?>"class="<?=Format::css_category($GroupCategoryID)?> <?=$TorrentTags->css_name()?>"></div></td>
<td class="big_info"> <td class="big_info">
<? if ($LoggedUser['CoverArt']) { ?> <? if ($LoggedUser['CoverArt']) { ?>

View File

@ -23,3 +23,21 @@ function clearSelected(filterId) {
} }
}); });
} }
$(document).ready(function () {
var notifyBoxes = $('.notify_box');
notifyBoxes.keydown(function(e) {
var nextBox, index = notifyBoxes.index($(this));
if (index > 0 && e.which === 75) { // K
nextBox = notifyBoxes.get(index-1);
} else if (index < notifyBoxes.size()-1 && e.which === 74) { // J
nextBox = notifyBoxes.get(index+1);
} else if (e.which === 88) {
$(this).prop('checked', !$(this).prop('checked'));
}
if (nextBox) {
nextBox.focus();
$(window).scrollTop($(nextBox).position()['top']-$(window).height()/4);
}
});
});