mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
Merge pull request #6217 from marc1706/ticket/16782
[ticket/16782] Use alternative template for mention BBCode
This commit is contained in:
commit
b8a8b22a74
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@
|
||||||
itemClass: 'mention-item',
|
itemClass: 'mention-item',
|
||||||
menuItemTemplate,
|
menuItemTemplate,
|
||||||
selectTemplate(item) {
|
selectTemplate(item) {
|
||||||
return '[mention=' + item.type + ':' + item.id + ']' + item.name + '[/mention]';
|
return '[mention ' + (item.type === 'g' ? 'group_id=' : 'user_id=') + item.id + ']' + item.name + '[/mention]';
|
||||||
},
|
},
|
||||||
menuItemLimit: mentionNamesLimit,
|
menuItemLimit: mentionNamesLimit,
|
||||||
values(text, cb) {
|
values(text, cb) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue