Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
a65da050
Commit
a65da050
authored
Nov 26, 2020
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "fix emoji-picker for use_system_emojis==false"
This reverts commit
e0088a45
.
parent
c002600a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/components/emoji-picker.js
src/components/emoji-picker.js
+1
-1
src/templates/emoji_picker.js
src/templates/emoji_picker.js
+2
-2
No files found.
src/components/emoji-picker.js
View file @
a65da050
...
@@ -61,7 +61,7 @@ export default class EmojiPicker extends CustomElement {
...
@@ -61,7 +61,7 @@ export default class EmojiPicker extends CustomElement {
'
query
'
:
this
.
query
,
'
query
'
:
this
.
query
,
'
search_results
'
:
this
.
search_results
,
'
search_results
'
:
this
.
search_results
,
'
render_emojis
'
:
this
.
render_emojis
,
'
render_emojis
'
:
this
.
render_emojis
,
'
sn2Emoji
'
:
shortname
=>
u
.
shortnamesToEmojis
(
this
.
getTonedShortname
(
shortname
)
,
{
'
add_title_wrapper
'
:
true
}
)
'
sn2Emoji
'
:
shortname
=>
u
.
shortnamesToEmojis
(
this
.
getTonedShortname
(
shortname
))
});
});
}
}
...
...
src/templates/emoji_picker.js
View file @
a65da050
...
@@ -28,7 +28,7 @@ const emoji_picker_header = (o) => {
...
@@ -28,7 +28,7 @@ const emoji_picker_header = (o) => {
const
emoji_item
=
(
o
)
=>
{
const
emoji_item
=
(
o
)
=>
{
return
html
`
return
html
`
<li class="emoji insert-emoji
${
o
.
shouldBeHidden
(
o
.
emoji
.
sn
)
?
'
hidden
'
:
''
}
" data-emoji="
${
o
.
emoji
.
sn
}
" title="
${
o
.
emoji
.
sn
}
">
<li class="emoji insert-emoji
${
o
.
shouldBeHidden
(
o
.
emoji
.
sn
)
?
'
hidden
'
:
''
}
" data-emoji="
${
o
.
emoji
.
sn
}
" title="
${
o
.
emoji
.
sn
}
">
<a href="#" @click=
${
o
.
insertEmoji
}
data-emoji="
${
o
.
emoji
.
sn
}
">
${
u
.
shortnamesToEmojis
(
o
.
emoji
.
sn
,
{
'
add_title_wrapper
'
:
true
}
)}
</a>
<a href="#" @click=
${
o
.
insertEmoji
}
data-emoji="
${
o
.
emoji
.
sn
}
">
${
u
.
shortnamesToEmojis
(
o
.
emoji
.
sn
)}
</a>
</li>
</li>
`
;
`
;
}
}
...
@@ -65,7 +65,7 @@ export const tpl_all_emojis = (o) => {
...
@@ -65,7 +65,7 @@ export const tpl_all_emojis = (o) => {
const
skintone_emoji
=
(
o
)
=>
{
const
skintone_emoji
=
(
o
)
=>
{
return
html
`
return
html
`
<li data-skintone="
${
o
.
skintone
}
" class="emoji-skintone
${(
o
.
current_skintone
===
o
.
skintone
)
?
'
picked
'
:
''
}
">
<li data-skintone="
${
o
.
skintone
}
" class="emoji-skintone
${(
o
.
current_skintone
===
o
.
skintone
)
?
'
picked
'
:
''
}
">
<a class="pick-skintone" href="#" data-skintone="
${
o
.
skintone
}
" @click=
${
o
.
onSkintonePicked
}
>
${
u
.
shortnamesToEmojis
(
'
:
'
+
o
.
skintone
+
'
:
'
,
{
'
add_title_wrapper
'
:
true
}
)}
</a>
<a class="pick-skintone" href="#" data-skintone="
${
o
.
skintone
}
" @click=
${
o
.
onSkintonePicked
}
>
${
u
.
shortnamesToEmojis
(
'
:
'
+
o
.
skintone
+
'
:
'
)}
</a>
</li>`
;
</li>`
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment