mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-03 11:01:20 +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)) {
|
||||
quickreply.init({
|
||||
route: `/topics/${ajaxify.data.tid}`,
|
||||
body: {
|
||||
tid: ajaxify.data.tid,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,9 +124,9 @@ define('quickreply', [
|
||||
storage.removeItem(qrDraftId);
|
||||
const textEl = components.get('topic/quickreply/text');
|
||||
hooks.fire('action:composer.post.new', {
|
||||
tid: ajaxify.data.tid,
|
||||
title: ajaxify.data.titleRaw,
|
||||
title: ajaxify.data.tid ? ajaxify.data.titleRaw : '',
|
||||
body: textEl.val(),
|
||||
...opts.body,
|
||||
});
|
||||
textEl.val('');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user