From 1363fa9f1f01c0158fb1ba19121e1c7f49104c16 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 7 May 2018 22:16:05 +1000 Subject: [PATCH] Prevent modals from automatically closing --- InvenTree/static/script/modal_form.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/InvenTree/static/script/modal_form.js b/InvenTree/static/script/modal_form.js index 952e722f75..e87af2467a 100644 --- a/InvenTree/static/script/modal_form.js +++ b/InvenTree/static/script/modal_form.js @@ -86,6 +86,10 @@ function openModal(modal, title='', content='') { modalSetTitle(modal, title); modalSetContent(modal, content); + $(modal).modal({ + backdrop: 'static', + keyboard: false, + }); $(modal).modal('show'); }