diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/js/gogs.js | 5 |
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'); |