11 Commits

Author SHA1 Message Date
Johannes Meyer
437f1b0f0e Merge pull request #4976 from Icinga/do-not-disable-all-inputs-on-form-submit
js: Only disable submit buttons on form submit
(cherry picked from commit 96179182e413b5285ad8be00e7124fd278e300c3)
2023-01-12 11:02:00 +01:00
raviks789
223e2cfd3a Fix unresponsive modal submit buttons in Safari
(cherry picked from commit 703956c3da8c2d333b34bd08bd8d98de98ed64db)
2021-11-10 09:37:39 +01:00
Johannes Meyer
79ee00176e modal.js: Don't disable inputs before the actual form submit is done
fixes Icinga/icingadb-web#376

(cherry picked from commit dcf394eaa692a006012566c1be0db868e1b74675)
2021-11-09 09:33:40 +01:00
Johannes Meyer
e17e28fdda Merge pull request #4538 from Icinga/fix-multi-modal-windows-and-submit-4525
Fix multi modal windows and submit

(cherry picked from commit 8ac8271eddc69d295bdf4efa72800016253c4dce)
2021-11-09 09:33:20 +01:00
Johannes Meyer
e704309c41 modal.js: Trigger close-modal when.. closing a modal 2021-05-17 13:20:43 +02:00
Johannes Meyer
07251e6d5e modal.js: Really only close the modal if the user clicks outside of it
The click event fires only after the mouse button is released, which
may happen on the outside, after the user tried to select something
and overrun accidentally. A close is then not desired as the user
may loose input. The mousedown event fires right when the button
is pressed and suffices on the outside of the modal.
2021-03-09 08:52:10 +01:00
Johannes Meyer
7790a72efa js: Only close a modal if an ESC press is not handled otherwise 2021-03-09 08:52:10 +01:00
Johannes Meyer
57b4a31bc3 js: Don't navigate right when opening a modal
Isn't the prettiest fix. I would have liked to completely
remove the target preparation from `getLinkTargetFor`.
But this is the easiest fix since it's only for modals
that preparation is not desired. It's also the most
compatible change.
2021-02-17 12:51:26 +01:00
Johannes Meyer
74a9a8edf0 modal.js: Request compact content with showCompact 2020-06-04 08:50:41 +02:00
Johannes Meyer
db69f23c20 modal.js: Don't push form submits to the history 2020-01-15 08:41:34 +01:00
Johannes Meyer
a13d2b1e48 js: Introduce behavior modal.js 2019-11-04 12:46:30 +01:00