diff --git a/InvenTree/static/css/inventree.css b/InvenTree/static/css/inventree.css index a603513cee..1658113edb 100644 --- a/InvenTree/static/css/inventree.css +++ b/InvenTree/static/css/inventree.css @@ -51,7 +51,7 @@ background: #eee; display: none; position: absolute; - z-index: 999; + z-index: 400; border: 1px solid #555; max-width: 250px; } @@ -159,7 +159,15 @@ .modal { overflow: hidden; - z-index: 99999999; + z-index: 9999; +} + +.modal-primary { + z-index: 10000; +} + +.modal-secondary { + z-index: 11000; } .js-modal-form .checkbox { @@ -227,7 +235,7 @@ margin-top: 20px; width: 100%; padding: 20px; - z-index: 999999; + z-index: 5000; pointer-events: none; // Prevent this div from blocking links underneath } diff --git a/InvenTree/static/script/inventree/modals.js b/InvenTree/static/script/inventree/modals.js index e4a7ed32fb..8a2da5ff9c 100644 --- a/InvenTree/static/script/inventree/modals.js +++ b/InvenTree/static/script/inventree/modals.js @@ -354,15 +354,41 @@ function injectModalForm(modal, form_html) { } -function insertNewItemButton(modal, field, text) { +function insertNewItemButton(modal, options) { + /* Insert a button into a modal form, after a field label. + * Looks for a