X-Git-Url: https://git.auder.net/doc/screen_pairings_scoring.png?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=308d415e9eec0e220832167a5e402c90ef2985fc;hb=5bd679d562f992cad856099fbc98014dc4556801;hp=6d05a2a6393d557d10d3c38f313843d245d610e0;hpb=6752407b88b6d7678b9b19df4ffe1224d17625d7;p=vchess.git diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index 6d05a2a6..308d415e 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -755,9 +755,8 @@ Vue.component('my-game', { this.possibleMoves = this.mode!="idle" && this.vr.canIplay(this.mycolor,startSquare) ? this.vr.getPossibleMovesFrom(startSquare) : []; - console.log(this.possibleMoves); - console.log(this.vr.promoted); - e.target.parentNode.appendChild(this.selectedPiece); + // Next line add moving piece just after current image (required for Crazyhouse reserve) + e.target.parentNode.insertBefore(this.selectedPiece, e.target.nextSibling); } }, mousemove: function(e) {