Skip to content

Instantly share code, notes, and snippets.

@seb-thomas
Created April 23, 2013 20:27
Show Gist options
  • Save seb-thomas/5447107 to your computer and use it in GitHub Desktop.
Save seb-thomas/5447107 to your computer and use it in GitHub Desktop.
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