mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 01:52:22 +03:00
Automatically focus the last modal button so that pressing enter submits the modal directly
This commit is contained in:
parent
ea95b20873
commit
48d84491ab
1 changed files with 4 additions and 0 deletions
|
@ -105,6 +105,10 @@ window.App.Utils.Message = (function () {
|
|||
backdrop: 'static',
|
||||
});
|
||||
|
||||
$messageModal.on('shown.bs.modal', () => {
|
||||
$messageModal.find('.modal-footer button:last').focus();
|
||||
});
|
||||
|
||||
messageModal.show();
|
||||
|
||||
$messageModal.css('z-index', '99999').next().css('z-index', '9999');
|
||||
|
|
Loading…
Reference in a new issue