Permalink
Browse files

Correct URL assignment for drop down navigation.

There was nothing technically wrong with the previous implementation,
but it was more than a little redundant.
  • Loading branch information...
1 parent 967aacf commit 22ce2ec4c06d15b0739e9ecbfb40d20cd15eca03 @mgsisk committed Aug 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 -/js/dropdown.js
View
@@ -4,7 +4,7 @@ jQuery( function( $ ) {
var url = $( this ).find( 'option:selected' ).data( 'webcomic-url' );
if ( url ) {
- window.location.href = $( this ).find( 'option:selected' ).data( 'webcomic-url' );
+ window.location.href = url;
}
} );
} );

0 comments on commit 22ce2ec

Please sign in to comment.