1
0
mirror of https://github.com/go-gitea/gitea synced 2024-12-24 03:35:55 +01:00

#2171 fix wiki preview does not work on Firefox

This commit is contained in:
Unknwon 2015-12-13 17:55:13 -05:00
parent 42a8c15ad0
commit ed001d70e4

@ -464,10 +464,7 @@ function initWiki() {
element: $edit_area[0],
previewRender: function (plainText, preview) { // Async method
setTimeout(function () {
if ($('.editor-preview-active').length == 0) {
return;
}
// FIXME: still send render request when return back to edit mode
$.post($edit_area.data('url'), {
"_csrf": csrf,
"mode": "gfm",