diff --git a/ui/game/src/main.ts b/ui/game/src/main.ts
index 3c520479f5..488469d08d 100644
--- a/ui/game/src/main.ts
+++ b/ui/game/src/main.ts
@@ -1,13 +1,13 @@
///
-import { GameData, GameView, Player, Status, Source } from './interfaces';
+import { GameData, GameView, Player, Status, Source, Simul } from './interfaces';
import * as game from './game';
import * as status from './status';
import * as router from './router';
import viewStatus from './view/status';
-export { GameData, Player, Status, Source, game, status, router };
+export { GameData, Player, Status, Source, Simul, game, status, router };
export const view: GameView = {
status: viewStatus
diff --git a/ui/round/src/socket.ts b/ui/round/src/socket.ts
index e35b232cf6..dfa426d1a5 100644
--- a/ui/round/src/socket.ts
+++ b/ui/round/src/socket.ts
@@ -4,6 +4,7 @@ import * as xhr from './xhr';
import * as sound from './sound';
import RoundController from './ctrl';
import { Untyped, ApiEnd } from './interfaces';
+import { Simul } from 'game';
const li = window.lichess;
@@ -123,6 +124,12 @@ export function make(send: SocketSend, ctrl: RoundController): RoundSocket {
li.hasToReload = true;
location.href = '/' + gameId;
}
+ },
+ simulEnd(simul: Simul) {
+ $.modal($(
+ '
Simul complete!
' +
+ 'Back to ' + simul.name + ' simul'
+ ));
}
};
diff --git a/ui/site/src/main.js b/ui/site/src/main.js
index 022b7efa6f..3db60b1472 100644
--- a/ui/site/src/main.js
+++ b/ui/site/src/main.js
@@ -120,20 +120,12 @@ lichess.topMenuIntent = function() {
'' +
- '' +
- ''
+ ''
).find("a.withdraw").click(function() {
$.post($(this).attr("href"));
$('#tournament_reminder').remove();
return false;
});
- },
- simulEnd: function(simul) {
- $.modal($(
- 'Simul complete!
' +
- 'Back to ' + simul.name + ' simul'
- ));
}
},
params: {},