diff options
author | KN4CK3R <KN4CK3R@users.noreply.github.com> | 2021-05-23 16:14:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-23 17:14:03 +0300 |
commit | 6021fbfe7a4e73c209eeea514a929fcb5598d63e (patch) | |
tree | 0058ceeaa2df9d20655aae7ad78c82f3e0f7623e /web_src/js/index.js | |
parent | b4d10598c9be1ba8008c5a47ef1cd3612e99331a (diff) | |
download | gitea-6021fbfe7a4e73c209eeea514a929fcb5598d63e.tar.gz gitea-6021fbfe7a4e73c209eeea514a929fcb5598d63e.zip |
Make tasklist checkboxes clickable (#15791)
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'web_src/js/index.js')
-rw-r--r-- | web_src/js/index.js | 14 |
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(), ]); |