mirror of
https://github.com/silverstripe/silverstripe-externallinks.git
synced 2024-10-22 17:05:44 +02:00
Merge pull request #58 from creative-commoners/pulls/2.0/disable-button
FIX External links report generate button is now disabled while it is loading
This commit is contained in:
commit
60893a87b1
@ -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');
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user