• Resolved msolowski

    (@msolowski)


    Hello πŸ˜‰
    I have problem with latest version of plugin. (WP 4.9.8).
    After success ajax call I reinitializing fancybox with:
    $(function()
    {
    $(‘.module_news_contener_post’).fancybox();
    });

    It’s work, but a lot of options from settings in admin panel are lost. I think only stylize settings are working as well.
    There is a way to use hardcode, like:
    $(function()
    {
    $(‘.module_news_contener_post’).fancybox(
    {
    type: ‘image’,
    href: this.href,

    });
    });

    .. but I want to stay with settings from admin panel.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, you could try a work-around with jQuery(document).trigger('post-load'); but it’s a bit hacky and may invoke other script to execute as well… So maybe better call easy_fancybox_handler which is a handler for the complete Easy Fancybox init routine.

    Thread Starter msolowski

    (@msolowski)

    $(function()
    {
    easy_fancybox_handler();
    });
    Works like a charm πŸ˜‰
    Thank You soooo much!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Lost settings after reinitialize after ajax.’ is closed to new replies.