projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented random rematch
[xogo.git]
/
app.js
diff --git
a/app.js
b/app.js
index
0a1fffe
..
e269c5b
100644
(file)
--- a/
app.js
+++ b/
app.js
@@
-86,8
+86,9
@@
function cancelSeek() {
if (send("cancelseek", {vname: seek_vname})) toggleVisible("newGame");
}
if (send("cancelseek", {vname: seek_vname})) toggleVisible("newGame");
}
-function sendRematch() {
- if (send("rematch", {gid: gid})) toggleVisible("pendingRematch");
+function sendRematch(random) {
+ if (send("rematch", {gid: gid, random: !!random}))
+ toggleVisible("pendingRematch");
}
function cancelRematch() {
if (send("norematch", {gid: gid})) toggleVisible("newGame");
}
function cancelRematch() {
if (send("norematch", {gid: gid})) toggleVisible("newGame");