1
0
mirror of https://github.com/linkedin/oncall.git synced 2025-11-30 23:44:59 +02:00

fix button not loading bug

This commit is contained in:
Colin Yang
2020-03-25 20:28:20 -07:00
parent 99ddd9d948
commit bae57f4f02

View File

@@ -3010,7 +3010,7 @@ var oncall = {
var error = oncall.isJson(data.responseText) ? JSON.parse(data.responseText).description : data.responseText || 'Delete failed.';
oncall.alerts.createAlert(error, 'danger');
}).always(function(){
$cta.addClass('loading disabled').prop('disabled', false);
$cta.removeClass('loading disabled').prop('disabled', false);
});
} else {
$modal.modal('hide');