forked from forgejo/forgejo
Remove jQuery from repo wiki creation page (#29271)
- Switched to plain JavaScript
- Tested the wiki creation form functionality and it works as before
# Demo using JavaScript without jQuery

---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: silverwind <me@silverwind.io>
(cherry picked from commit ade1110e8b7d94dc142a259854e2b73845eab8b9)
This commit is contained in:
parent
eefc4bf6f0
commit
0d61f3decc
4 changed files with 51 additions and 37 deletions
|
@ -47,8 +47,8 @@ function initRepoDiffConversationForm() {
|
|||
e.preventDefault();
|
||||
|
||||
const $form = $(e.target);
|
||||
const $textArea = $form.find('textarea');
|
||||
if (!validateTextareaNonEmpty($textArea)) {
|
||||
const textArea = e.target.querySelector('textarea');
|
||||
if (!validateTextareaNonEmpty(textArea)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue