I need to add extra buttons to “Production” tab in the Submission workflow, that creates a new Modal for adding certain data.
I created some modal forms copying the structure of previous ones, but can’t make the “Cancel” button to work.
I realize that, for some reason, if I assign a pkpHandler JS function to a Js file that does something (Even if I never use it, or it’s a already built handler), the Cancel button works (aka just closes the modal, as I don’t want/need to perform anything else)
I don’t quite understand the logic behind it, and why (if needed) I need to attach a handler to perform something just to close the modal.
Reading the technical documentation here http://pkp.sfu.ca/ojs/docs/technicalreference/2.1/index.html I couldn’t find pretty much anything regarding modals. Am I looking in the wrong documentation? Also, the PDF documentation is ridiculously old, and also doesn’t have anything related to a modal.
How would be the correct steps to build a new modal form from scratch? Also, how to properly set up the buttons to perform what they suppose to do?
Kind regards, Jose