mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 12:11:36 +00:00
Empty commit
This commit is contained in:
parent
f269fa5454
commit
5b80249db6
@ -10,7 +10,6 @@
|
||||
*/
|
||||
class MASS_USER_BOOKMARKS_EDITOR extends MASS_USER_TORRENTS_EDITOR {
|
||||
public function __construct ($Table = 'bookmarks_torrents') {
|
||||
parent::__construct();
|
||||
$this->set_table($Table);
|
||||
}
|
||||
|
||||
|
@ -286,7 +286,7 @@ function header_link($SortKey, $DefaultWay = 'desc') {
|
||||
// print row
|
||||
?>
|
||||
<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="big_info">
|
||||
<? if ($LoggedUser['CoverArt']) { ?>
|
||||
|
@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user