2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

Allow custom code to be run on form submission

This commit is contained in:
Oliver
2021-07-11 20:40:27 +10:00
parent c045a3b6f6
commit 9e4bc274cf
2 changed files with 18 additions and 7 deletions

View File

@ -136,6 +136,9 @@ function adjustStock(items, options={}) {
preFormContent: html,
confirm: true,
modal: modal,
onSubmit: function(fields, options) {
console.log("submit!");
}
});
// Attach callbacks for the action buttons