Created
April 23, 2013 20:27
-
-
Save seb-thomas/5447107 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setClicker() { | |
var arrowClicker = $('.direction-arrows'); | |
} | |
$('.direction-arrows').click( function(event){ | |
var link = $(this).attr('href'); | |
var elem = $('.video_thumbnails_wrapper'); | |
console.log(link); | |
elem.load(link +' .video_thumbnails_wrapper', function(response, status, xhr) { | |
if (status == "error") { | |
var msg = "Sorry but there was an error: "; | |
elem.html(msg + xhr.status + " " + xhr.statusText); | |
} | |
elem.children().unwrap(); | |
}); | |
console.log($(this)); | |
setClicker(); | |
return false; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment