mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Donate keyboard focus when creating a secondary modal
This commit is contained in:
parent
21f2dd5896
commit
3c328feb65
@ -1424,6 +1424,11 @@ function addSecondaryModal(field, fields, options) {
|
||||
};
|
||||
}
|
||||
|
||||
// Relinquish keyboard focus for this modal
|
||||
$(options.modal).modal({
|
||||
keyboard: false,
|
||||
});
|
||||
|
||||
// Method should be "POST" for creation
|
||||
secondary.method = secondary.method || 'POST';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user