mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
[ticket/16782] Use alternative template for mention BBCode
PHPBB3-16782
This commit is contained in:
parent
f3c426389c
commit
b305be06c9
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