Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ebb85e6291 | ||
|
|
98b5e976af |
1 changed files with 2 additions and 2 deletions
|
|
@ -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}rebuild/${label}`;
|
f.action = `${dashUrl}api/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 + 'answer-question/' + id, {
|
const resp = await fetch(dashboardBase + 'api/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),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue