Mulit Submits disable, global Tag
This commit is contained in:
parent
78f43169c8
commit
0ed47d3553
14 changed files with 107 additions and 23 deletions
|
|
@ -77,4 +77,8 @@ a[aria-expanded='true'] > .fa-caret-expand:before {
|
|||
|
||||
.no-line-break {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.spinner {
|
||||
display: none;
|
||||
}
|
||||
|
|
@ -99,4 +99,4 @@ a:hover {
|
|||
}
|
||||
[data-toggle="collapse"]:not(.collapsed) .if-collapsed {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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