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