mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
6747c4e62a
3 changed files with 2 additions and 25 deletions
|
@ -361,6 +361,7 @@ class recaptcha_v3 extends captcha_abstract
|
||||||
if ($result->isSuccess())
|
if ($result->isSuccess())
|
||||||
{
|
{
|
||||||
$this->solved = true;
|
$this->solved = true;
|
||||||
|
$this->confirm_code = $this->code;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -337,30 +337,6 @@ $('[data-ajax]').each(function() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Prevent accidental double submission of form
|
|
||||||
$('[data-prevent-flood] input[type=submit]').click(function(event) {
|
|
||||||
const $submitButton = $(this); // Store the button element
|
|
||||||
const $form = $submitButton.closest('form');
|
|
||||||
|
|
||||||
// Always add the disabled class for visual feedback
|
|
||||||
$submitButton.addClass('disabled');
|
|
||||||
|
|
||||||
// Submit form if it hasn't been submitted yet
|
|
||||||
if (!$form.prop('data-form-submitted')) {
|
|
||||||
$form.prop('data-form-submitted', true);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Prevent default submission for subsequent clicks within 5 seconds
|
|
||||||
event.preventDefault();
|
|
||||||
|
|
||||||
setTimeout(() => {
|
|
||||||
$form.prop('removeProp', 'data-form-submitted');
|
|
||||||
$submitButton.removeClass('disabled'); // Re-enable after 5 seconds
|
|
||||||
}, 5000);
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This simply appends #preview to the action of the
|
* This simply appends #preview to the action of the
|
||||||
* QR action when you click the Full Editor & Preview button
|
* QR action when you click the Full Editor & Preview button
|
||||||
|
|
|
@ -97,7 +97,7 @@
|
||||||
<!-- IF not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
|
<!-- IF not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
|
||||||
<div class="panel bg2">
|
<div class="panel bg2">
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<fieldset class="submit-buttons" data-prevent-flood>
|
<fieldset class="submit-buttons">
|
||||||
{S_HIDDEN_ADDRESS_FIELD}
|
{S_HIDDEN_ADDRESS_FIELD}
|
||||||
{S_HIDDEN_FIELDS}
|
{S_HIDDEN_FIELDS}
|
||||||
<!-- EVENT posting_editor_submit_buttons -->
|
<!-- EVENT posting_editor_submit_buttons -->
|
||||||
|
|
Loading…
Add table
Reference in a new issue