From 8ff34e4dc2b64261f087a1f42657461bd7c45626 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 16 Jul 2014 21:48:17 -0400 Subject: [PATCH] parseint tid --- public/src/modules/composer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/modules/composer.js b/public/src/modules/composer.js index b4a98b06df..05b0f82c41 100644 --- a/public/src/modules/composer.js +++ b/public/src/modules/composer.js @@ -125,7 +125,7 @@ define('composer', dependencies, function(taskbar, controls, uploads, formatting var postContainer = $('#cmp-uuid-' + uuid); var bodyEl = postContainer.find('textarea'); var prevText = bodyEl.val(); - if(tid !== composer.posts[uuid].tid) { + if (parseInt(tid, 10) !== parseInt(composer.posts[uuid].tid, 10)) { var link = '[' + title + '](/topic/' + topicSlug + '/' + (parseInt(postIndex, 10) + 1) + ')'; translator.translate('[[modules:composer.user_said_in, ' + username + ', ' + link + ']]', onTranslated); } else {