parseint tid

v1.18.x
barisusakli 11 years ago
parent 021e31a03a
commit 8ff34e4dc2

@ -125,7 +125,7 @@ define('composer', dependencies, function(taskbar, controls, uploads, formatting
var postContainer = $('#cmp-uuid-' + uuid); var postContainer = $('#cmp-uuid-' + uuid);
var bodyEl = postContainer.find('textarea'); var bodyEl = postContainer.find('textarea');
var prevText = bodyEl.val(); 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) + ')'; var link = '[' + title + '](/topic/' + topicSlug + '/' + (parseInt(postIndex, 10) + 1) + ')';
translator.translate('[[modules:composer.user_said_in, ' + username + ', ' + link + ']]', onTranslated); translator.translate('[[modules:composer.user_said_in, ' + username + ', ' + link + ']]', onTranslated);
} else { } else {

Loading…
Cancel
Save