mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-05-24 10:37:47 +08:00
Frontend refactor, PascalCase to camelCase, remove unused code (#17365)
* Frontend refactor, PascalCase to camelCase, remove unused code * fix
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import {initMarkupContent} from '../markup/content.js';
|
||||
import {initCompMarkupContentPreviewTab} from './comp/MarkupContentPreview.js';
|
||||
|
||||
const {csrf} = window.config;
|
||||
const {csrfToken} = window.config;
|
||||
|
||||
export function initRepoWikiForm() {
|
||||
const $editArea = $('.repository.wiki textarea#edit_area');
|
||||
@ -22,7 +22,7 @@ export function initRepoWikiForm() {
|
||||
sideBySideTimeout = null;
|
||||
}
|
||||
$.post($editArea.data('url'), {
|
||||
_csrf: csrf,
|
||||
_csrf: csrfToken,
|
||||
mode: 'gfm',
|
||||
context: $editArea.data('context'),
|
||||
text: plainText,
|
||||
|
Reference in New Issue
Block a user