summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2016-03-02 21:18:58 -0300
committerAndrey Nering <andrey.nering@gmail.com>2016-03-02 21:54:05 -0300
commit13e71acadf538124724c24b6332e4fa8a59baadb (patch)
treef49edfe271408ae5cc6cd3275e64512a2312d780 /public
parent37ac743da7ba2931dfaaa947bf73ed55534e6f29 (diff)
downloadgitea-13e71acadf538124724c24b6332e4fa8a59baadb.tar.gz
gitea-13e71acadf538124724c24b6332e4fa8a59baadb.zip
Render emojis in more places.
Diffstat (limited to 'public')
-rw-r--r--public/js/gogs.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index 3459658585..c4b4668f9c 100644
--- a/public/js/gogs.js
+++ b/public/js/gogs.js
@@ -878,7 +878,10 @@ $(document).ready(function () {
img_dir: suburl + '/img/emoji',
ignore_emoticons: true
});
- emojify.run();
+ var hasEmoji = document.getElementsByClassName('has-emoji');
+ for (var i = 0; i < hasEmoji.length; i++) {
+ emojify.run(hasEmoji[i]);
+ }
// Clipboard JS
var clipboard = new Clipboard('.clipboard');