Mulit Submits disable, global Tag

This commit is contained in:
Kevin Adametz 2021-08-03 16:01:11 +02:00
parent 78f43169c8
commit 0ed47d3553
14 changed files with 107 additions and 23 deletions

View file

@ -86,6 +86,10 @@ jQuery(document).ready(function() {
});
}
$('.form-prevent-multiple-submits').on('submit', function(){
$('.button-prevent-multiple-submits').attr('disabled', true);
$(this).find('.spinner').show();
});
});
function _scrollTo(to, offset) {
@ -125,6 +129,11 @@ $(function () {
loadModalInner(this, data);
});
$('.form-prevent-multiple-submits').on('submit', function(){
$('.button-prevent-multiple-submits').attr('disabled', true);
$(this).find('.spinner').show();
});
}
function loadModalInner(self, data){
var url = data.route,