Skip to content

Commit

Permalink
feat: fix button
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanakl committed Dec 6, 2023
1 parent 308af59 commit 1aeb96e
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,13 +591,13 @@ const comment = (() => {
await pagination.reset();
document.getElementById('daftar-ucapan').scrollIntoView({ behavior: 'smooth' });
resetForm();
} else {
buttonKirim.disabled = false;
buttonKirim.innerHTML = tmp;
formNama.disabled = false;
formKehadiran.disabled = false;
formPesan.disabled = false;
}

buttonKirim.disabled = false;
buttonKirim.innerHTML = tmp;
formNama.disabled = false;
formKehadiran.disabled = false;
formPesan.disabled = false;
};

const balasan = async (button) => {
Expand Down Expand Up @@ -824,13 +824,13 @@ const comment = (() => {
await ucapan();
document.getElementById(id).scrollIntoView({ behavior: 'smooth', block: 'center' });
resetForm();
} else {
buttonBatal.disabled = false;
buttonBalas.disabled = false;
buttonBalas.innerHTML = tmp;
formNama.disabled = false;
formPesan.disabled = false;
}

buttonBatal.disabled = false;
buttonBalas.disabled = false;
buttonBalas.innerHTML = tmp;
formNama.disabled = false;
formPesan.disabled = false;
};

const ubah = async () => {
Expand Down Expand Up @@ -883,13 +883,13 @@ const comment = (() => {
await ucapan();
document.getElementById(id).scrollIntoView({ behavior: 'smooth', block: 'center' });
resetForm();
} else {
buttonUbah.innerHTML = tmp;
buttonUbah.disabled = false;
buttonBatal.disabled = false;
formKehadiran.disabled = false;
formPesan.disabled = false;
}

buttonUbah.innerHTML = tmp;
buttonUbah.disabled = false;
buttonBatal.disabled = false;
formKehadiran.disabled = false;
formPesan.disabled = false;
};

const hapus = async (button) => {
Expand Down

0 comments on commit 1aeb96e

Please sign in to comment.