mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 03:21:18 +01:00
ability to pass tags to new topics
This commit is contained in:
@@ -488,9 +488,10 @@ app.cacheBuster = null;
|
||||
});
|
||||
};
|
||||
|
||||
app.newTopic = function (cid) {
|
||||
app.newTopic = function (cid, tags) {
|
||||
$(window).trigger('action:composer.topic.new', {
|
||||
cid: cid || ajaxify.data.cid || 0
|
||||
cid: cid || ajaxify.data.cid || 0,
|
||||
tags: tags || (ajaxify.data.tag ? [ajaxify.data.tag] : [])
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user