From ed001d70e4438484f9c9916cd3ef6c59fbc967a4 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 13 Dec 2015 17:55:13 -0500 Subject: [PATCH] #2171 fix wiki preview does not work on Firefox --- public/js/gogs.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/public/js/gogs.js b/public/js/gogs.js index 4a9635ea6..879756055 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -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",