Skip to content

Commit

Permalink
Disable phone number buttons during call
Browse files Browse the repository at this point in the history
  • Loading branch information
daradib committed Mar 27, 2024
1 parent fb0343e commit fc0ab34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions phonebank/static/phonebank/phonebank.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ function handleCallUpdate(call) {
currentCall = null;
clearInterval(currentCallTimerID);
currentCallStartTime = null;
$('#phones button').attr('disabled', false);
$('#echo').attr('disabled', false);
$('#getContact').attr('disabled', false);
$('#callStatus').text('');
Expand Down Expand Up @@ -230,6 +231,7 @@ function makeCall(phone) {
currentCallStartTime = null;
$('#getContact').attr('disabled', true);
$('#echo').attr('disabled', true);
$('#phones button').attr('disabled', true);
$('#hangupCall').removeClass('d-none');
$('#hangupCall').attr('disabled', false);
}
Expand Down

0 comments on commit fc0ab34

Please sign in to comment.