diff options
author | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-09-08 22:48:06 +0400 |
---|---|---|
committer | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-09-08 22:52:46 +0400 |
commit | 6881a1b344c83aaa95ceeb0fd1a99d79e3b65780 (patch) | |
tree | 82d650c8b605da50d9cec16d6bef1c71605e061e /plugins/Live | |
parent | 8b11944fc8f45f304f4651298955f233513c785c (diff) |
Refs #3089, fix a bug in visitor profile (left/right keys didn't change visitor on firefox) and highlight latest visit section after loading individual visit details.
Diffstat (limited to 'plugins/Live')
-rw-r--r-- | plugins/Live/javascripts/visitorProfile.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/Live/javascripts/visitorProfile.js b/plugins/Live/javascripts/visitorProfile.js index 209a39da89..4726734c4a 100644 --- a/plugins/Live/javascripts/visitorProfile.js +++ b/plugins/Live/javascripts/visitorProfile.js @@ -99,9 +99,9 @@ }); $element.on('keydown', function (e) { - if (event.which == 37) { // on <- key press, load previous visitor + if (e.which == 37) { // on <- key press, load previous visitor self._loadPreviousVisitor(); - } else if (event.which == 39) { // on -> key press, load next visitor + } else if (e.which == 39) { // on -> key press, load next visitor self._loadNextVisitor(); } }); @@ -184,7 +184,10 @@ $('.visitor-profile-current-visit', $element).removeClass('visitor-profile-current-visit'); $visitElement.closest('li').addClass('visitor-profile-current-visit'); - $('.visitor-profile-latest-visit', $element).html(response); + var $latestVisitSection = $('.visitor-profile-latest-visit', $element); + $latestVisitSection + .html(response) + .effect('highlight', {color: '#FFFFCB'}, 1000); }); ajax.setFormat('html'); ajax.send(); |