Browse Source

Display the :shortcode: as a title for the emojis

pull/872/head
Timothée Jaussoin 6 years ago
parent
commit
2853f886bc
  1. 1
      app/widgets/Chat/chat.js

1
app/widgets/Chat/chat.js

@ -262,6 +262,7 @@ var Chat = {
var img = document.createElement('img');
img.setAttribute('src','theme/img/emojis/svg/' + emojis[found].codepoint + '.svg');
img.classList.add('emoji');
img.title = ':' + found + ':';
img.dataset.emoji = emojis[found].emoji;
img.addEventListener('click', e => {
textarea.value = textarea.value.substr(0, textarea.value.lastIndexOf(':'));

Loading…
Cancel
Save