fixed button text while adding user

This commit is contained in:
Massimiliano Assante 2021-11-10 14:20:11 +01:00
parent b0023d2ad1
commit 93457ae1a9
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ function getSelectedRadioFormId() {
function acceptForm(endpoint, applicationItemId) {
console.log("acceptForm:" + endpoint);
$("#acceptButton").prop("disabled",true);
$("#acceptButton").attr('value', 'Please wait ...');
$("#acceptButton").text('Please wait ...');
$.ajax({
url : endpoint,
type : 'POST',
@ -46,7 +46,7 @@ function acceptForm(endpoint, applicationItemId) {
$("#modalSuccess").show();
}
$("#acceptButton").prop("disabled",false);
$("#acceptButton").attr('value', 'Accept');
$("#acceptButton").text('Accept');
}
});
}