From 0082edc90c2116465745ddb15f8520c055c5512d Mon Sep 17 00:00:00 2001 From: Hedgehog Date: Thu, 6 Mar 2014 20:09:44 +0400 Subject: [PATCH] update bugfix --- js/calm.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/calm.js b/js/calm.js index b1050b2..2c11f71 100644 --- a/js/calm.js +++ b/js/calm.js @@ -169,7 +169,7 @@ function autocompleteAndEmoji() { function replaceEmoji() { var exp = /\B:[A-Za-z0-9_+-]+:\B/gi; $('.post-text').each(function(){ - var string = $(this).text(); + var string = $(this).html(); $(this).html(string.replace(exp, function(match){ var clearMatch = match.replace(/:/gi,''); if(emojies.indexOf(clearMatch) < 0) return match; @@ -184,6 +184,6 @@ function InitOptions () { } function homeIntInit () { modalDMIntr (); - setTimeout(autocompleteAndEmoji, 500); - setTimeout(replaceEmoji, 500) + setTimeout(autocompleteAndEmoji, 800); + setTimeout(replaceEmoji, 800) } \ No newline at end of file