From f87479f70dff40b4ea1feb8bf352701d6404300b Mon Sep 17 00:00:00 2001 From: Thomas Guillot Date: Tue, 27 Aug 2013 10:29:46 +0100 Subject: [PATCH] _s: Fix element for left arrow key code Previous one was deprecated --- js/keyboard-image-navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/keyboard-image-navigation.js b/js/keyboard-image-navigation.js index 6cc01ac1..9792bd9b 100644 --- a/js/keyboard-image-navigation.js +++ b/js/keyboard-image-navigation.js @@ -2,7 +2,7 @@ jQuery( document ).ready( function( $ ) { $( document ).keydown( function( e ) { var url = false; if ( e.which === 37 ) { // Left arrow key code - url = $( '.previous-image a' ).attr( 'href' ); + url = $( '.nav-previous a' ).attr( 'href' ); } else if ( e.which === 39 ) { // Right arrow key code url = $( '.entry-attachment a' ).attr( 'href' );