Jump to content

1.7.7.x : new Admin/Orders page reloads on empty button click


Recommended Posts

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.

mVFi8w8QwK.gif

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...