Roman Dayneko 11 лет назад
Родитель
Сommit
180a229b87
1 измененных файлов с 5 добавлено и 14 удалено
  1. 5 14
      apps/face/src/okey.erl

+ 5 - 14
apps/face/src/okey.erl

@@ -88,21 +88,12 @@ body() ->
 event(terminate) -> wf:info("terminate");
 
 event(init) -> 
-    GamesIds = 
-        case game_manager:get_all_games_ids() of
-            [] ->
-                [?GAMEID];
-            List ->
-                List
-        end,
+    GamesIds = case game_manager:get_all_games_ids() of
+      [] -> [?GAMEID];
+      List -> List end,
     
-    wf:update(games_ids, 
-              [
-               #dropdown{id = games_ids, value = ?GAMEID, options = 
-                             [#option{label = wf:to_list(GameId), value = wf:to_list(GameId)} || GameId <- GamesIds]
-                        }
-              ]
-             ),
+    wf:update(games_ids,#dropdown{id = games_ids, value = ?GAMEID, options = 
+      [#option{label = wf:to_list(GameId), value = wf:to_list(GameId)} || GameId <- GamesIds]})),
     
     event(attach),
     event(join);