Mulit Submits disable, global Tag
This commit is contained in:
parent
78f43169c8
commit
0ed47d3553
14 changed files with 107 additions and 23 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue