add getGameId() and $ (jQuery) to the Admin object
This commit is contained in:
parent
aee33bf30e
commit
c2dbd6267c
|
|
@ -1201,16 +1201,18 @@ $(function (){
|
||||||
|
|
||||||
/* Low-level commands to be run from the JS console */
|
/* Low-level commands to be run from the JS console */
|
||||||
window.Admin = {
|
window.Admin = {
|
||||||
getCurrentGame: function() { return currentGame; },
|
getGameId() { return $('#cb_board').data('gameId'); },
|
||||||
getVisibleGame: function() { return visibleGame; },
|
getCurrentGame() { return currentGame; },
|
||||||
|
getVisibleGame() { return visibleGame; },
|
||||||
setCurrentGame,
|
setCurrentGame,
|
||||||
setVisibleGame,
|
setVisibleGame,
|
||||||
refresh: function() { setCurrentGame(currentGame); },
|
refresh() { setCurrentGame(currentGame); },
|
||||||
renderBoard,
|
renderBoard,
|
||||||
putState,
|
putState,
|
||||||
putMeta,
|
putMeta,
|
||||||
PS,
|
PS,
|
||||||
IO,
|
IO,
|
||||||
|
$,
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue