Browse Source

#2171 fix wiki preview does not work on Firefox

Unknwon 9 years ago
parent
commit
ed001d70e4
1 changed files with 1 additions and 4 deletions
  1. 1 4
      public/js/gogs.js

+ 1 - 4
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",