FIX External links report generate button is now disabled while it is loading

This commit is contained in:
Robbie Averill 2019-03-08 10:06:50 +13:00
parent 1cfb249384
commit a3aed13ed0
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,7 @@
// set button to "submitting" state
$button.addClass('btn--loading loading');
$button.attr('disabled', true);
if ($button.is('button')) {
$button.append($(
@ -75,6 +76,7 @@
var $button = this.getButton();
$button.removeClass('btn--loading loading');
$button.attr('disabled', false);
$button.find('.btn__loading-icon').remove();
$button.css('width', 'auto');
},