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

@ -77,4 +77,8 @@ a[aria-expanded='true'] > .fa-caret-expand:before {
.no-line-break {
white-space: nowrap;
}
.spinner {
display: none;
}

View file

@ -99,4 +99,4 @@ a:hover {
}
[data-toggle="collapse"]:not(.collapsed) .if-collapsed {
display: none;
}
}

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,