mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-02 05:26:45 +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
|
// Method should be "POST" for creation
|
||||||
secondary.method = secondary.method || 'POST';
|
secondary.method = secondary.method || 'POST';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user