Commit 24926641 authored by lindonb's avatar lindonb

security timeout: Use a better selector than committed with r69338 that...

security timeout: Use a better selector than committed with r69338 that applies only to forms with ticket inputs so a special class doesn't need to tbe added
parent c8a6b950
Pipeline #50006796 failed with stages
in 27 minutes and 12 seconds
......@@ -193,11 +193,15 @@ function postForm (event) {
}
/**
* See checkTimeout() documentation below. check-timeout class can used for a form so that the user is warned that
* See checkTimeout() documentation below. Used for a form that has a security ticket 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
*/
$('form.check-timeout input, form.check-timeout select').on('mousedown keydown', function() {
$('form').has('input[name=ticket]').on('mousedown keydown', 'select', function() {
if (checkTimeout()) {
return true;
}
}).on('mousedown keydown', 'input', 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