mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 12:31:33 +01:00
fix: minor cleanup of quick-reply args; opts.body
This commit is contained in:
@@ -427,6 +427,9 @@ define('forum/topic', [
|
|||||||
if (config.enableQuickReply || (config.theme && config.theme.enableQuickReply)) {
|
if (config.enableQuickReply || (config.theme && config.theme.enableQuickReply)) {
|
||||||
quickreply.init({
|
quickreply.init({
|
||||||
route: `/topics/${ajaxify.data.tid}`,
|
route: `/topics/${ajaxify.data.tid}`,
|
||||||
|
body: {
|
||||||
|
tid: ajaxify.data.tid,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,9 +124,9 @@ define('quickreply', [
|
|||||||
storage.removeItem(qrDraftId);
|
storage.removeItem(qrDraftId);
|
||||||
const textEl = components.get('topic/quickreply/text');
|
const textEl = components.get('topic/quickreply/text');
|
||||||
hooks.fire('action:composer.post.new', {
|
hooks.fire('action:composer.post.new', {
|
||||||
tid: ajaxify.data.tid,
|
title: ajaxify.data.tid ? ajaxify.data.titleRaw : '',
|
||||||
title: ajaxify.data.titleRaw,
|
|
||||||
body: textEl.val(),
|
body: textEl.val(),
|
||||||
|
...opts.body,
|
||||||
});
|
});
|
||||||
textEl.val('');
|
textEl.val('');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user