Thread Starter
lspoe2
(@lspoe2)
Hi,
I disabled all my plugins and also changed themes, however the spinner still doesn’t show on submit.
Any ideas what may be going on here?
Thanks
My decision.
Place the preloader in the form or whatever method you have.
And just by pressing the button for submitting the form. We need to get our preloader to activate.
My form
<div class="glsr-form-wrap">
<form class="{{ class }}" method="post" enctype="multipart/form-data">
{{ fields }}
{{ response }}
{{ submit_button }}
<div class="preloader"></div>
</form>
</div>
My Query code
// REVIEWS PLUGIN
$(".glsr-review-form button").on("click", function () {
$(this).closest("form").addClass("active-sent");
});
My style
.active-sent .preloader{
display: block
}
add CODE in functions.php
add_filter('site-reviews/enqueue/public/inline-script/after', function ($javascript) {
return $javascript."
GLSR.Event.on('site-reviews/form/handle', function (response, formEl) {
formEl.classList.remove('active-sent');
});";
});
The button loader (spinner) broke in the last update due to the new “load more” pagaination feature. It’s already been fixed and will be available in the next update.
-
This reply was modified 4 years, 5 months ago by
Gemini Labs.