Commit 683349a4 authored by lindonb's avatar lindonb

security timeout: Add a jquery method to show the security ticket timeout...

security timeout: Add a jquery method to show the security ticket timeout dialog clicking any input form element if the check-timeout class is added to the form element. Previously users were only notified upon submit, which could have been after significant work on the form. Probably won't work on forms on tooltip popups and maybe other popups, but less of an issue there.
parent 578d5800
Pipeline #50004444 failed with stages
in 27 minutes and 23 seconds
......@@ -193,10 +193,11 @@ function postForm (event) {
}
/**
* See checkTimeout() documentation below. timeout class can used in lieu of the onclick function, however this may not
* work in all cases (e.g., for submit elements in tooltips)
* See checkTimeout() documentation below. check-timeout class can used for a form so that the user is warned that
* the ticket is timed out before entering data into the form. This may not work for forms in popups (e.g., tooltips)
* but the checkTimeout() onclick method below will
*/
$('.timeout').click(function() {
$('form.check-timeout input, form.check-timeout select').on('mousedown keydown', function() {
if (checkTimeout()) {
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment