Support » Plugin: Ajaxify Wordpress Site(AWS) » Not working with iLightbox

  • Resolved osadi

    (@osadi)


    Hi,
    trying to get this to work with iLightbox.

    I’ve added the container id to the ‘No ajax container IDs:’,
    and if I view the source I can see that the class no-ajaxy is added to the a element
    <a class="ilightbox no-ajaxy" href="[link]" data-caption="">

    I also see that when clicking on the thumbnail it opens the lightbox modal, and then it loads the image as a regular url, which means I end up on a page with just the image.

    From there, if I press the back button, the navigation bar is updated with the previous url, but the page isn’t refreshed.

    I added a

    console.log(this);
    return;

    On line 67 and 68, then I see that ajaxify() is called even though the link has the class .no-ajaxy.

    Any ideas?

    http://wordpress.org/plugins/ajaxify-wordpress-site/

Viewing 1 replies (of 1 total)
  • Thread Starter osadi

    (@osadi)

    Added:

    var addNoAjaxyClass = function(){
                $(aws_data['ids']).each(function(){
                    $(this).addClass('no-ajaxy');
                });
            }
    
            addNoAjaxyClass();
    
            // Ajaxify our Internal Links
            $body.ajaxify();

    And commented out/removed:

    //Adding no-ajaxy class to a tags present under ids provided
    //	jQuery(aws_data['ids']).each(function(){
    //        console.log(this);
    //		jQuery(this).addClass('no-ajaxy');
    //	});

    Problem was that the click event handler was bound before the no-ajaxy class was added.

Viewing 1 replies (of 1 total)
  • The topic ‘Not working with iLightbox’ is closed to new replies.