Compare commits

..

View file

@ -224,7 +224,7 @@ window.marked = marked;
closeOverflowMenu(); closeOverflowMenu();
const f = document.createElement('form'); const f = document.createElement('form');
f.method = 'POST'; f.method = 'POST';
f.action = `${dashUrl}api/rebuild/${label}`; f.action = `${dashUrl}rebuild/${label}`;
document.body.appendChild(f); document.body.appendChild(f);
f.submit(); f.submit();
}); });
@ -1053,7 +1053,7 @@ window.marked = marked;
btn.disabled = true; btn.disabled = true;
status.textContent = 'sending…'; status.textContent = 'sending…';
try { try {
const resp = await fetch(dashboardBase + 'api/answer-question/' + id, { const resp = await fetch(dashboardBase + 'answer-question/' + id, {
method: 'POST', method: 'POST',
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
body: 'answer=' + encodeURIComponent(answer), body: 'answer=' + encodeURIComponent(answer),