From f119ab724a24a143e59cbe86dbeb6e4f20be5ffc Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Mon, 28 Oct 2013 13:01:49 +0100 Subject: [PATCH] Paginator: A/D hotkeys disabled in endless mode --- public_html/media/js/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public_html/media/js/core.js b/public_html/media/js/core.js index 94203591..60e961ba 100644 --- a/public_html/media/js/core.js +++ b/public_html/media/js/core.js @@ -216,6 +216,6 @@ $(function() Mousetrap.bind('q', function() { $('#top-nav input').focus(); return false; }, 'keyup'); Mousetrap.bind('w', function() { $('body,html').animate({scrollTop: '-=150px'}, 200); }); Mousetrap.bind('s', function() { $('body,html').animate({scrollTop: '+=150px'}, 200); }); - Mousetrap.bind('a', function() { var url = $('.paginator .prev:not(.disabled) a').attr('href'); if (typeof url !== 'undefined') window.location.href = url; }, 'keyup'); - Mousetrap.bind('d', function() { var url = $('.paginator .next:not(.disabled) a').attr('href'); if (typeof url !== 'undefined') window.location.href = url; }, 'keyup'); + Mousetrap.bind('a', function() { var url = $('.paginator:visible .prev:not(.disabled) a').attr('href'); if (typeof url !== 'undefined') window.location.href = url; }, 'keyup'); + Mousetrap.bind('d', function() { var url = $('.paginator:visible .next:not(.disabled) a').attr('href'); if (typeof url !== 'undefined') window.location.href = url; }, 'keyup'); });