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

Use javascript/ajax for reset plugins button in admin #9

Open
CodeProKid opened this issue Oct 25, 2018 · 0 comments
Open

Use javascript/ajax for reset plugins button in admin #9

CodeProKid opened this issue Oct 25, 2018 · 0 comments

Comments

@CodeProKid
Copy link
Collaborator

The button is currently super wonky. It just links to the current page with some url params that I use to execute the Dictate::reset_plugins(); method, then it resets the page with: header("Refresh:0; url=" . admin_url( 'plugins.php' ) ); 😆

Ideally, when you click on the button it will add the spinner next to it, run the method via ajax (or maybe I'll add a REST endpoint) and then refresh the page.

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