Browse Source

fix overlay

Maxim Sokhatsky 11 years ago
parent
commit
8177985306
1 changed files with 3 additions and 3 deletions
  1. 3 3
      apps/web/priv/static/app/js/okey/okey.js

+ 3 - 3
apps/web/priv/static/app/js/okey/okey.js

@@ -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());
 }