Browse Source

fix js event name

Maxim Sokhatsky 11 years ago
parent
commit
135e4f6377

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

@@ -226,7 +226,7 @@ function PostLoad()
         // $gosterme.remove();
     });
 
-    scope.apiProvider.on("okey_deny_wrong_reveal", function(x) {
+    scope.apiProvider.on("wrong_reveal", function(x) {
         denyWrongReveal();
     });
 

+ 1 - 1
apps/web/priv/static/app/js/okey/okey_protocol.js

@@ -34,7 +34,7 @@ function OkeyApiProviderScope(scope) {
         "okey_game_started",
         "okey_game_player_state",
         "okey_next_turn",
-        "okey_deny_wrong_reveal",
+        "wrong_reveal",
         "okey_tile_discarded",
         "okey_tile_taken",
         "okey_round_ended",