From 66d1f2505fc4cd03cf9d7e2bab69004fd2ed7b18 Mon Sep 17 00:00:00 2001 From: Micheil Smith Date: Thu, 10 Apr 2014 20:24:51 +0100 Subject: [PATCH] Composer: Pass radix argument to parseInt --- public/src/modules/composer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/modules/composer.js b/public/src/modules/composer.js index a984522ee8..2402cf0a3e 100644 --- a/public/src/modules/composer.js +++ b/public/src/modules/composer.js @@ -867,11 +867,11 @@ define(['taskbar'], function(taskbar) { titleEl = postContainer.find('.title'), bodyEl = postContainer.find('textarea'); - if ((parseInt(postData.tid) || parseInt(postData.pid)) > 0) { + if ((parseInt(postData.tid, 10) || parseInt(postData.pid, 10)) > 0) { bodyEl.focus(); bodyEl.selectionStart = bodyEl.val().length; bodyEl.selectionEnd = bodyEl.val().length; - } else if (parseInt(postData.cid) > 0) { + } else if (parseInt(postData.cid, 10) > 0) { titleEl.focus(); } };