loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove jQuery from the comment task list (#29170)

- Switched to plain JavaScript
- Tested the task list functionality and it works as before

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: silverwind <me@silverwind.io>
(cherry picked from commit 542480a9b0d5cdb497dbfa99752d59fd016df0d6)

authored by

Yarden Shoham
wxiaoguang
Giteabot
silverwind
and committed by
Earl Warren
c2d4c2fc df439b6a

+6 -7
+6 -7
web_src/js/markup/tasklist.js
··· 1 - import $ from 'jquery'; 1 + import {POST} from '../modules/fetch.js'; 2 2 3 3 const preventListener = (e) => e.preventDefault(); 4 4 ··· 55 55 const updateUrl = editContentZone.getAttribute('data-update-url'); 56 56 const context = editContentZone.getAttribute('data-context'); 57 57 58 - await $.post(updateUrl, { 59 - ignore_attachments: true, 60 - _csrf: window.config.csrfToken, 61 - content: newContent, 62 - context 63 - }); 58 + const requestBody = new FormData(); 59 + requestBody.append('ignore_attachments', 'true'); 60 + requestBody.append('content', newContent); 61 + requestBody.append('context', context); 62 + await POST(updateUrl, {data: requestBody}); 64 63 65 64 rawContent.textContent = newContent; 66 65 } catch (err) {