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

Use radix 10 in parseInt calls

parent 9c8bc24b
...@@ -60,8 +60,8 @@ export default { ...@@ -60,8 +60,8 @@ export default {
const nextItemEl = itemEl.nextElementSibling; const nextItemEl = itemEl.nextElementSibling;
return { return {
beforeId: prevItemEl && parseInt(prevItemEl.dataset.orderingId, 0), beforeId: prevItemEl && parseInt(prevItemEl.dataset.orderingId, 10),
afterId: nextItemEl && parseInt(nextItemEl.dataset.orderingId, 0), afterId: nextItemEl && parseInt(nextItemEl.dataset.orderingId, 10),
}; };
}, },
reordered(event) { reordered(event) {
......
...@@ -90,7 +90,7 @@ export default () => { ...@@ -90,7 +90,7 @@ export default () => {
allowSubEpics: parseBoolean(dataset.allowSubEpics), allowSubEpics: parseBoolean(dataset.allowSubEpics),
defaultInnerHeight: Number(dataset.innerHeight), defaultInnerHeight: Number(dataset.innerHeight),
isChildEpics: parseBoolean(dataset.childEpics), isChildEpics: parseBoolean(dataset.childEpics),
currentGroupId: parseInt(dataset.groupId, 0), currentGroupId: parseInt(dataset.groupId, 10),
basePath: dataset.epicsPath, basePath: dataset.epicsPath,
fullPath: dataset.fullPath, fullPath: dataset.fullPath,
epicIid: dataset.iid, 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