Adrien74100 Posted June 5, 2021 Share Posted June 5, 2021 Hi, I develop and distribute a module to automatically print shipping labels. Since the new Admin/Orders page (PS 1.7.7.x), clicking on any button on this page reloads the entire page. Which is a problem with my module, as it needs 1 or 2 seconds to send Ajax requests, download a PDF file and send it to the printer... On slow machines / internet connexions, the Ajax requests are canceled before they can finish, as the page is reloading ! I have no clue how to prevent this page reload... I already tried : - adding an simple and empty <button> without any code in the onclick property - Event.stopPropagation() - return false; - async: false I attached a video with a simple way to reproduce the problem. Link to comment Share on other sites More sharing options...
Adrien74100 Posted June 11, 2021 Author Share Posted June 11, 2021 Hi, I'm still stuck with this problem... I tried to remove all the "Event Listeners" from the empty button in DevTools : still no luck ! The page continues to refresh itself after clicking on the button. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now