diff options
Diffstat (limited to 'web_src/js/markup/tasklist.js')
-rw-r--r-- | web_src/js/markup/tasklist.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/web_src/js/markup/tasklist.js b/web_src/js/markup/tasklist.js index 149027d428..0f03837baa 100644 --- a/web_src/js/markup/tasklist.js +++ b/web_src/js/markup/tasklist.js @@ -1,3 +1,7 @@ +import $ from 'jquery'; + +const preventListener = (e) => e.preventDefault(); + /** * Attaches `input` handlers to markdown rendered tasklist checkboxes in comments. * @@ -5,9 +9,6 @@ * is set accordingly and sent to the server. On success it updates the raw-content on * error it resets the checkbox to its original value. */ - -const preventListener = (e) => e.preventDefault(); - export function initMarkupTasklist() { for (const el of document.querySelectorAll(`.markup[data-can-edit=true]`) || []) { const container = el.parentNode; |