Skip to content

Instantly share code, notes, and snippets.

@martisj
Created February 25, 2013 17:40
Show Gist options
  • Save martisj/5031638 to your computer and use it in GitHub Desktop.
Save martisj/5031638 to your computer and use it in GitHub Desktop.
jskatta
var $element_store;
$camp_photos.on('click', '.top_level_image_link', function() {
var $this = $(this);
var $photo_albums = $('#photo_albums');
$element_store = $photo_albums;
var $photo_album_to_load = $('#photo_album-' + $this.data('album-id'));
// replace_content_and_make_slides(new_html, container);
$camp_photos.animate({opacity: 0}, 'fast', function() {
$photo_albums
.parent()
.height($(this).find('.slides_control').height());
$photo_albums
.replaceWith($photo_album_to_load.attr('class', 'slides_container'));
// throw "stop execution";
$camp_photos.animate({opacity: 1}, 'fast', function() {
$camp_photos.slides({
prev: 'previous_arrow',
next: 'next_arrow',
generatePagination: false,
preload: true,
preloadImage: '/assets/img/content/pacman_loader.gif',
fadeSpeed: 'fast'
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment