Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to find out whether PJax is property configured? #240

Open
mkgn opened this issue Jul 6, 2021 · 0 comments
Open

How to find out whether PJax is property configured? #240

mkgn opened this issue Jul 6, 2021 · 0 comments

Comments

@mkgn
Copy link

mkgn commented Jul 6, 2021

I am using AdminLTE theme and only need left navigation menu links to work with PJax.

So I have below PJax configuration set

var pjax = new Pjax({
    elements: "a.js-pjax", // default is "a[href], form[action]"
    selectors: [".container-fluid"]
})

For each navigation link I have added "js-pjax" class like;

My selector works in console and lists the elements in the navigation that should work with PJax. .container-fluid is the div which should have the content replaced.

There is no error but nothing seems to happen. When I click the navigation links, the pages load with a full post and reset my menu (menu gets collapsed). If everything works fine I believe my menu shouldn't be refreshed right? How do you troubleshoot this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant