diff options
author | boeserwolf <github@noxware.de> | 2020-04-19 15:52:43 +0300 |
---|---|---|
committer | boeserwolf <github@noxware.de> | 2020-04-19 15:52:43 +0300 |
commit | 1a065ff351b5c37536d73cc3d46b736fe310e32c (patch) | |
tree | dc6473c09f2307b19d2f2486d3862caa31d872c8 /client/components/boards/boardsList.js | |
parent | 3565ff2700e7080e509017617ad2a767244cabc6 (diff) | |
download | wekan-1a065ff351b5c37536d73cc3d46b736fe310e32c.tar.gz wekan-1a065ff351b5c37536d73cc3d46b736fe310e32c.tar.bz2 wekan-1a065ff351b5c37536d73cc3d46b736fe310e32c.zip |
Refactor variable names
Diffstat (limited to 'client/components/boards/boardsList.js')
-rw-r--r-- | client/components/boards/boardsList.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/components/boards/boardsList.js b/client/components/boards/boardsList.js index d2d44407..c700084f 100644 --- a/client/components/boards/boardsList.js +++ b/client/components/boards/boardsList.js @@ -49,9 +49,9 @@ BlazeComponent.extendComponent({ stop(evt, ui) { // To attribute the new index number, we need to get the DOM element // of the previous and the following card -- if any. - const prevCardDom = ui.item.prev('.js-board').get(0); - const nextCardDom = ui.item.next('.js-board').get(0); - const sortIndex = calculateIndex(prevCardDom, nextCardDom, 1); + const prevBoardDom = ui.item.prev('.js-board').get(0); + const nextBoardBom = ui.item.next('.js-board').get(0); + const sortIndex = calculateIndex(prevBoardDom, nextBoardBom, 1); const boardDomElement = ui.item.get(0); const board = Blaze.getData(boardDomElement); |