1
Vote

Error with Cycle/Prev_Next

description

The following combination returns the error
Error: TypeError: this.prev_link.show is not a function
    var galleries = $('.ad-gallery').adGallery({
        display_next_and_prev: false,
        cycle: false,
        slideshow: {
            enable: true,
            autostart: true,
        } 
    });
Seems the cycle function and the previous/next links are dependant on each other? If I set either option to TRUE, the script works fine. But combining them to both FALSE and the script fails.

Would it be possible to allow this situation? Thanks!

AD Gallery 1.2.7
jQuery 1.10.2

comments

doublem524 wrote Jan 22, 2014 at 3:39 AM

And this isn't a solution, but my current workaround is below and works pretty good:

jquery:
    var galleries = $('.ad-gallery').adGallery({
        display_next_and_prev: true,
        cycle: false,
        slideshow: {
            enable: true,
            autostart: true,
        } 
    });

    $( ".ad-gallery .ad-image-wrapper .ad-prev" ).unbind();
    $( ".ad-gallery .ad-image-wrapper .ad-next" ).unbind();
css:
.ad-gallery .ad-image-wrapper .ad-prev,
.ad-gallery .ad-image-wrapper .ad-next {
    cursor:default !important;
}
.ad-gallery .ad-image-wrapper .ad-prev .ad-prev-image,
.ad-gallery .ad-image-wrapper .ad-next .ad-next-image {
    opacity:0 !important;
}