summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-13 17:55:13 -0500
committerUnknwon <u@gogs.io>2015-12-13 17:55:13 -0500
commited001d70e4438484f9c9916cd3ef6c59fbc967a4 (patch)
treefc92f8b76899bde55e34701dc5774dfadfd58d36 /public
parent42a8c15ad0717d02c6b1b3e35363901c5bd781dc (diff)
downloadgitea-ed001d70e4438484f9c9916cd3ef6c59fbc967a4.tar.gz
gitea-ed001d70e4438484f9c9916cd3ef6c59fbc967a4.zip
#2171 fix wiki preview does not work on Firefox
Diffstat (limited to 'public')
-rw-r--r--public/js/gogs.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index 4a9635ea65..879756055c 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",