Skip to content

Problem with nested PJax. Fix. #70

Description

@andrew-svirin

I have a problem with nested pjax. I need to specify directly pjax-container in code. Because my code is blowing and become unreadably by overriding native pjax behaviours.

bower-asset.jquery.pjax.js.patch.txt

yii2-pjax.patch.txt.txt

The main goal of these patches are:

  1. Allow to specify pjax container for response by pjax-data attribute.
  2. Disallow bind events on elements inside nested containers.
  3. I tried to fight with multiple form submission on trigger form submit, but i found that pjax is good with this and closing submitted previous forms. So in Network is seen as posts gone, but in real sent only last. I have tried to add attribut on container when it pjax-processing and refuse next triggering, but failed, so i decided that pjax is good with multiple form submission.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions