summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2021-08-20 21:26:19 +0200
committerGitHub <noreply@github.com>2021-08-20 15:26:19 -0400
commitdc2613600cc5a2a0e1418762a779cd89f18dd30e (patch)
treeff2824d5ed80b20bb3afb4e5090ae2a455c817c6 /web_src
parent3b2ed4762e1f8e5b4e2b7f0c03b90d9fbcde5c19 (diff)
downloadgitea-dc2613600cc5a2a0e1418762a779cd89f18dd30e.tar.gz
gitea-dc2613600cc5a2a0e1418762a779cd89f18dd30e.zip
Keep attachments on tasklist update (#16750)
* Send attachments too. * Use tasklist flag. * use action="ignoreAttachments" instead of "tasklist" * Use boolean parameter. Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/markup/tasklist.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web_src/js/markup/tasklist.js b/web_src/js/markup/tasklist.js
index 24b29ddb7a..ea1a1f824a 100644
--- a/web_src/js/markup/tasklist.js
+++ b/web_src/js/markup/tasklist.js
@@ -46,9 +46,10 @@ export function initMarkupTasklist() {
const {updateUrl, context} = editContentZone.dataset;
await $.post(updateUrl, {
+ ignore_attachments: true,
_csrf: window.config.csrf,
content: newContent,
- context,
+ context
});
rawContent.textContent = newContent;