Soft'N'Design Software
/
projects
/
trivabble.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ddb56a
)
add score to current player
author
Laurent Mazet
<mazet@softndesign.org>
Mon, 7 Sep 2020 20:32:51 +0000
(22:32 +0200)
committer
Laurent Mazet
<mazet@softndesign.org>
Mon, 7 Sep 2020 20:32:51 +0000
(22:32 +0200)
public/trivabble.js
patch
|
blob
|
blame
|
history
diff --git
a/public/trivabble.js
b/public/trivabble.js
index 6bc774bf2efe0790b604dd1dd439244d91149554..b2a0291d07b2c9dc49730458dfaa7b1d85efe671 100644
(file)
--- a/
public/trivabble.js
+++ b/
public/trivabble.js
@@
-1774,7
+1774,12
@@
myConfirm(
_("Do you want to add score to active player?") + " " + totalScore,
function () {
- /* Add score to active player */
+ const scoreCell = tablePlayers[currentPlayer].childNodes[2].childNodes[0];
+ sendCmds([{
+ cmd: "score",
+ player: currentPlayer,
+ score: parseInt(scoreCell.textContent) + totalScore
+ }]);
}
);
}