summaryrefslogtreecommitdiffstats
path: root/web_src/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/index.js')
-rw-r--r--web_src/js/index.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index a01bd6ca08..c3d74b1395 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -21,8 +21,8 @@ import {createCodeEditor, createMonaco} from './features/codeeditor.js';
import {initMarkupAnchors} from './markup/anchors.js';
import {initNotificationsTable, initNotificationCount} from './features/notification.js';
import {initStopwatch} from './features/stopwatch.js';
-import {renderMarkupContent} from './markup/content.js';
import {showLineButton} from './code/linebutton.js';
+import {initMarkupContent, initCommentContent} from './markup/content.js';
import {stripTags, mqBinarySearch} from './utils.js';
import {svg, svgs} from './svg.js';
@@ -52,7 +52,7 @@ function initCommentPreviewTab($form) {
}, (data) => {
const $previewPanel = $form.find(`.tab[data-tab="${$tabMenu.data('preview')}"]`);
$previewPanel.html(data);
- renderMarkupContent();
+ initMarkupContent();
});
});
@@ -82,7 +82,7 @@ function initEditPreviewTab($form) {
}, (data) => {
const $previewPanel = $form.find(`.tab[data-tab="${$tabMenu.data('preview')}"]`);
$previewPanel.html(data);
- renderMarkupContent();
+ initMarkupContent();
});
});
}
@@ -1108,7 +1108,8 @@ async function initRepository() {
dz.emit('submit');
dz.emit('reload');
}
- renderMarkupContent();
+ initMarkupContent();
+ initCommentContent();
});
});
} else {
@@ -1481,7 +1482,7 @@ function initWikiForm() {
wiki: true
}, (data) => {
preview.innerHTML = `<div class="markup ui segment">${data}</div>`;
- renderMarkupContent();
+ initMarkupContent();
});
};
@@ -2732,6 +2733,7 @@ $(document).ready(async () => {
searchRepositories();
initMarkupAnchors();
+ initCommentContent();
initCommentForm();
initInstall();
initArchiveLinks();
@@ -2789,7 +2791,7 @@ $(document).ready(async () => {
initServiceWorker(),
initNotificationCount(),
initStopwatch(),
- renderMarkupContent(),
+ initMarkupContent(),
initGithook(),
initImageDiff(),
]);