summaryrefslogtreecommitdiffstats
path: root/public/js/gogs.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/gogs.js')
-rw-r--r--public/js/gogs.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index 0d7271c134..b80caa0d04 100644
--- a/public/js/gogs.js
+++ b/public/js/gogs.js
@@ -483,6 +483,7 @@ function initWiki() {
var simplemde = new SimpleMDE({
autoDownloadFontAwesome: false,
element: $edit_area[0],
+ forceSync: true,
previewRender: function (plainText, preview) { // Async method
setTimeout(function () {
// FIXME: still send render request when return back to edit mode
@@ -1092,4 +1093,8 @@ $(window).load(function () {
break;
}
}
-}); \ No newline at end of file
+});
+
+$(function() {
+ $('form').areYouSure();
+});