diff --git a/InvenTree/static/script/modal_form.js b/InvenTree/static/script/modal_form.js index 4196d0c496..c581f669a8 100644 --- a/InvenTree/static/script/modal_form.js +++ b/InvenTree/static/script/modal_form.js @@ -1,4 +1,9 @@ function launchModalForm(modal, url, data) { + + $(modal).on('shown.bs.modal', function () { + $(modal + ' .modal-content').scrollTop(0); // animate({ scrollTop: 0 }, 'fast'); + }); + $.ajax({ url: url, // Where to request the data from type: 'get', // GET request