diff --git a/classes/mass_user_bookmarks_editor.class.php b/classes/mass_user_bookmarks_editor.class.php index 9411d624..a41de98b 100644 --- a/classes/mass_user_bookmarks_editor.class.php +++ b/classes/mass_user_bookmarks_editor.class.php @@ -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); } diff --git a/sections/torrents/notify.php b/sections/torrents/notify.php index 76e8d04d..47eac16b 100644 --- a/sections/torrents/notify.php +++ b/sections/torrents/notify.php @@ -286,7 +286,7 @@ function header_link($SortKey, $DefaultWay = 'desc') { // print row ?> > - +
diff --git a/static/functions/notifications.js b/static/functions/notifications.js index 7c8b826d..dbd94c41 100644 --- a/static/functions/notifications.js +++ b/static/functions/notifications.js @@ -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); + } + }); +});