mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 11:10:54 +00:00
Adds setting to close forms using escape key
- Configurable per user - Default = false (to preserve behavior)
This commit is contained in:
@ -43,7 +43,7 @@ function createNewModal(options={}) {
|
||||
});
|
||||
|
||||
var html = `
|
||||
<div class='modal fade modal-fixed-footer modal-primary inventree-modal' role='dialog' id='modal-form-${id}'>
|
||||
<div class='modal fade modal-fixed-footer modal-primary inventree-modal' role='dialog' id='modal-form-${id}' tabindex='-1'>
|
||||
<div class='modal-dialog'>
|
||||
<div class='modal-content'>
|
||||
<div class="modal-header">
|
||||
@ -111,7 +111,7 @@ function createNewModal(options={}) {
|
||||
|
||||
$(modal_name).modal({
|
||||
backdrop: 'static',
|
||||
keyboard: false,
|
||||
keyboard: user_settings.FORMS_CLOSE_USING_ESCAPE,
|
||||
});
|
||||
|
||||
// Set labels based on supplied options
|
||||
|
Reference in New Issue
Block a user