2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

back button

This commit is contained in:
2021-06-06 17:43:16 +02:00
parent a535f8df42
commit 4f7edac213
2 changed files with 16 additions and 1 deletions

View File

@ -795,6 +795,11 @@ function handleModalForm(url, options) {
if (options.secondary) {
attachSecondaries(modal, options.secondary);
}
if (response.buttons) {
// Clean custom action buttons
$(modal).find('#modal-footer-buttons').html('');
attachButtons(modal, response.buttons);
}
}
else {
$(modal).modal('hide');