Node.js based forum software built for the modern web
fix: thumb count not updated when uploading multiple thumbs at a time
psychobunny1ad1787eaa50
diff --git a/public/src/modules/topicThumbs.js b/public/src/modules/topicThumbs.jsindex e08345ab3e..0c752b094a 100644--- a/public/src/modules/topicThumbs.js+++ b/public/src/modules/topicThumbs.js@@ -60,7 +60,10 @@ define('topicThumbs', ['api', 'bootbox', 'uploader', 'benchpress', 'translator',callback: () => {Thumbs.upload(id).then(() => {Thumbs.modal.open({ ...payload, modal });- resolve();+ require(['composer'], (composer) => {+ composer.updateThumbCount(id, $(`[component="composer"][data-uuid="${id}"]`));+ resolve();+ });});return false;},