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 */
|
||||
window.Admin = {
|
||||
getCurrentGame: function() { return currentGame; },
|
||||
getVisibleGame: function() { return visibleGame; },
|
||||
getGameId() { return $('#cb_board').data('gameId'); },
|
||||
getCurrentGame() { return currentGame; },
|
||||
getVisibleGame() { return visibleGame; },
|
||||
setCurrentGame,
|
||||
setVisibleGame,
|
||||
refresh: function() { setCurrentGame(currentGame); },
|
||||
refresh() { setCurrentGame(currentGame); },
|
||||
renderBoard,
|
||||
putState,
|
||||
putMeta,
|
||||
PS,
|
||||
IO,
|
||||
$,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue