]> source.dussan.org Git - gitea.git/commit
Remove jQuery AJAX from the markdown editor preview (#29384)
authorYarden Shoham <git@yardenshoham.com>
Sun, 25 Feb 2024 04:42:29 +0000 (06:42 +0200)
committerGitHub <noreply@github.com>
Sun, 25 Feb 2024 04:42:29 +0000 (04:42 +0000)
commit1f6de13897fa0ac74087b2d1ec00cbef06caf2f7
treed67a3cd4317138db467dcf19e829cf6a189b2e71
parent736c98be5c2bed26cef9f7f679c49a95af8161ef
Remove jQuery AJAX from the markdown editor preview (#29384)

- Removed all jQuery AJAX calls and replaced with our fetch wrapper
- Tested the markdown editor preview button functionality and it works
as before

# Demo using `fetch` instead of jQuery AJAX

![action](https://github.com/go-gitea/gitea/assets/20454870/3fc7abb8-4fdc-46e9-95f6-087d9526bb52)

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
web_src/js/features/comp/ComboMarkdownEditor.js