summaryrefslogtreecommitdiffstats
path: root/public/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/index.js')
-rw-r--r--public/js/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 696b63e778..5f4a7bc774 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -790,7 +790,7 @@ function initTeamSettings() {
function initWikiForm() {
var $editArea = $('.repository.wiki textarea#edit_area');
if ($editArea.length > 0) {
- new SimpleMDE({
+ var simplemde = new SimpleMDE({
autoDownloadFontAwesome: false,
element: $editArea[0],
forceSync: true,
@@ -825,6 +825,7 @@ function initWikiForm() {
"link", "image", "table", "horizontal-rule", "|",
"clean-block", "preview", "fullscreen"]
})
+ $(simplemde.codemirror.getInputField()).addClass("js-quick-submit");
}
}