mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 10:35:55 +01:00
refactor: use new params
This commit is contained in:
@@ -277,17 +277,17 @@ define('forum/topic/postTools', [
|
|||||||
hooks.fire('action:composer.addQuote', {
|
hooks.fire('action:composer.addQuote', {
|
||||||
tid: tid,
|
tid: tid,
|
||||||
pid: toPid,
|
pid: toPid,
|
||||||
topicName: ajaxify.data.titleRaw,
|
title: ajaxify.data.titleRaw,
|
||||||
username: username,
|
username: username,
|
||||||
text: selectedNode.text,
|
body: selectedNode.text,
|
||||||
selectedPid: selectedNode.pid,
|
selectedPid: selectedNode.pid,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
hooks.fire('action:composer.post.new', {
|
hooks.fire('action:composer.post.new', {
|
||||||
tid: tid,
|
tid: tid,
|
||||||
pid: toPid,
|
pid: toPid,
|
||||||
topicName: ajaxify.data.titleRaw,
|
title: ajaxify.data.titleRaw,
|
||||||
text: username ? username + ' ' : ($('[component="topic/quickreply/text"]').val() || ''),
|
body: username ? username + ' ' : ($('[component="topic/quickreply/text"]').val() || ''),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -305,7 +305,7 @@ define('forum/topic/postTools', [
|
|||||||
tid: tid,
|
tid: tid,
|
||||||
pid: toPid,
|
pid: toPid,
|
||||||
username: username,
|
username: username,
|
||||||
topicName: ajaxify.data.titleRaw,
|
title: ajaxify.data.titleRaw,
|
||||||
text: text,
|
text: text,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user