• pfuer

    (@pfuer)


    I have a WordPress installation containing the Sidney theme and your wp-photo-album-plus-plugin. The Sidney theme contains a “Hero”-header which breaks down to a link within the same HTML-document. Problem is now that the WPPA-plugins comes into play and executes a a full page reload!
    My link looks like:

    <a href="#primary" class="roll-button button-slider">Klicken zum Starten</a>

    Some lines below there is

    <div id="primary" class="content-area sidebar-right col-md-9 container-normal">

    If you click this link what happens then is, that following code within wppa-all.js is executed:

    window.onpopstate = function(e) {
    if (wppaCanPushState && e.state && e.state.type) {
    if ("slide" == e.state.type)
    return wppaNoStackPush = !0,
    void _wppaGoto(e.state.occur, e.state.slide);
    if ("ajax" == e.state.type)
    return void document.location.reload()
    }
    if (-1 != document.location.href.indexOf("wp-admin/admin.php"))
    return !0;
    document.location.reload()
    }

    The registered listener function gets called and document.location.reload() gets executed! Instead of just jumping to the div section a full page reload is executed. Not really what I wanted…

    When I comment out the document.location.reload() – line the scrolling works properly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Thanx for your detailed info.
    I will get into it and come back to you later.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I did some tests and can no longer reproduce a situation where the reload call could be required.
    I will remove it in the next version.
    You will be able to update to the next version when available and need no further action to take.

    Thanx for the report

    Thread Starter pfuer

    (@pfuer)

    Many thanks for your support!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.