polycule-connect/polyculeconnect/static/scripts/approval.js

10 lines
259 B
JavaScript
Raw Permalink Normal View History

2024-03-29 17:21:26 +00:00
function submitApproval(approve) {
if (approve) {
document.getElementById("approval").value = "approve";
} else {
document.getElementById("approval").value = "rejected";
}
handleSuccess();
2024-03-29 17:21:26 +00:00
document.getElementById("approvalform").submit();
}