Commit 40fc9399 authored by Vitaly Slobodin's avatar Vitaly Slobodin

Use radix 10 in parseInt calls

parent 9c8bc24b
......@@ -60,8 +60,8 @@ export default {
const nextItemEl = itemEl.nextElementSibling;
return {
beforeId: prevItemEl && parseInt(prevItemEl.dataset.orderingId, 0),
afterId: nextItemEl && parseInt(nextItemEl.dataset.orderingId, 0),
beforeId: prevItemEl && parseInt(prevItemEl.dataset.orderingId, 10),
afterId: nextItemEl && parseInt(nextItemEl.dataset.orderingId, 10),
};
},
reordered(event) {
......
......@@ -90,7 +90,7 @@ export default () => {
allowSubEpics: parseBoolean(dataset.allowSubEpics),
defaultInnerHeight: Number(dataset.innerHeight),
isChildEpics: parseBoolean(dataset.childEpics),
currentGroupId: parseInt(dataset.groupId, 0),
currentGroupId: parseInt(dataset.groupId, 10),
basePath: dataset.epicsPath,
fullPath: dataset.fullPath,
epicIid: dataset.iid,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment