_s: Fix element for left arrow key code

Previous one was deprecated
This commit is contained in:
Thomas Guillot 2013-08-27 10:29:46 +01:00
parent 0ac069a0bf
commit f87479f70d
1 changed files with 1 additions and 1 deletions

View File

@ -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' );