|
@@ -207,7 +207,7 @@ function PostLoad()
|
|
|
$("#Pause").on("click", function() { apiProvider.pause(); });
|
|
|
|
|
|
var whoPausedGame = false;
|
|
|
-/*
|
|
|
+
|
|
|
$overlay = $("#overlay");
|
|
|
$overlay.on("click", function() { whoPausedGame == scope.user && apiProvider.pause(!0); });
|
|
|
|
|
@@ -222,7 +222,7 @@ function PostLoad()
|
|
|
for (var player in playersMap) playersMap[player].timer.resume();
|
|
|
}
|
|
|
});
|
|
|
-*/
|
|
|
+
|
|
|
$("#Table-Oval").droppable({
|
|
|
accept: function(target) {
|
|
|
return 1 === apiProvider.socket.readyState && deck.length() > 14 &&
|
|
@@ -264,7 +264,7 @@ function initOkeyScene(e)
|
|
|
|
|
|
e.detail.whos_move && "null" != e.detail.whos_move &&
|
|
|
(e.detail.next_turn_in && "null" != e.detail.next_turn_in && playersMap[e.detail.whos_move].timer.from(e.detail.next_turn_in),
|
|
|
- e.detail.paused && (playersMap[e.detail.whos_move].timer.pause()/*,$overlay.show()*/),
|
|
|
+ e.detail.paused && (playersMap[e.detail.whos_move].timer.pause(),$overlay.show()),
|
|
|
playersMap[e.detail.whos_move].select());
|
|
|
}
|
|
|
|