Calling reset product action

Is there a way to invoke the reset product action via JavaScript without displaying a prompt to confirm? Currently, I'm triggering a click on the button using the jQuery trigger function, but it shows a confirmation prompt.


My current code:

jQuery('.fpd-actions-wrapper div.fpd-action-btn[data-action="reset-product"]').trigger('click');
Login or Signup to post a comment