mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 00:45:47 +01:00
Composer: Pass radix argument to parseInt
This commit is contained in:
@@ -867,11 +867,11 @@ define(['taskbar'], function(taskbar) {
|
|||||||
titleEl = postContainer.find('.title'),
|
titleEl = postContainer.find('.title'),
|
||||||
bodyEl = postContainer.find('textarea');
|
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.focus();
|
||||||
bodyEl.selectionStart = bodyEl.val().length;
|
bodyEl.selectionStart = bodyEl.val().length;
|
||||||
bodyEl.selectionEnd = bodyEl.val().length;
|
bodyEl.selectionEnd = bodyEl.val().length;
|
||||||
} else if (parseInt(postData.cid) > 0) {
|
} else if (parseInt(postData.cid, 10) > 0) {
|
||||||
titleEl.focus();
|
titleEl.focus();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user