mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 12:54:53 -05:00
#2171 fix wiki preview does not work on Firefox
This commit is contained in:
parent
42a8c15ad0
commit
ed001d70e4
1 changed files with 1 additions and 4 deletions
|
@ -464,10 +464,7 @@ function initWiki() {
|
||||||
element: $edit_area[0],
|
element: $edit_area[0],
|
||||||
previewRender: function (plainText, preview) { // Async method
|
previewRender: function (plainText, preview) { // Async method
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
if ($('.editor-preview-active').length == 0) {
|
// FIXME: still send render request when return back to edit mode
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$.post($edit_area.data('url'), {
|
$.post($edit_area.data('url'), {
|
||||||
"_csrf": csrf,
|
"_csrf": csrf,
|
||||||
"mode": "gfm",
|
"mode": "gfm",
|
||||||
|
|
Loading…
Reference in a new issue