RLG-Web client: refresh the current games list.
Add a refresh button to the list of watchable games. Also refresh it if watching fails.
This commit is contained in:
parent
f711cdb591
commit
f750d9eb34
2 changed files with 2 additions and 0 deletions
|
|
@ -91,6 +91,7 @@
|
||||||
<div><div>Player</div><div>Game</div><div>Actions</div></div>
|
<div><div>Player</div><div>Game</div><div>Actions</div></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="nogames">There are no games to watch.</div>
|
<div id="nogames">There are no games to watch.</div>
|
||||||
|
<div class="rfloat"><span class="ibutton" onclick="getcurrent()">Refresh</span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal" id="startgame">
|
<div class="modal" id="startgame">
|
||||||
<div id="opttable" class="formtable"><div><div>Game</div><div>Actions</div></div></div>
|
<div id="opttable" class="formtable"><div><div>Game</div><div>Actions</div></div></div>
|
||||||
|
|
|
||||||
|
|
@ -603,6 +603,7 @@ function startwatching(gamenumber) {
|
||||||
}
|
}
|
||||||
else if (reply.t == 'E') {
|
else if (reply.t == 'E') {
|
||||||
debug(1, "Could not watch game " + gamenumber + ": " + reply.s);
|
debug(1, "Could not watch game " + gamenumber + ": " + reply.s);
|
||||||
|
getcurrent();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
req.open('POST', '/watch', true);
|
req.open('POST', '/watch', true);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue