Skip to content

Commit

Permalink
ask for user name when receiving initial state
Browse files Browse the repository at this point in the history
  • Loading branch information
mkleine committed May 6, 2012
1 parent 4af6a62 commit d426ee7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/ui-client/ui/resources/javascript/main.js
Expand Up @@ -22,7 +22,10 @@ $(function () {
});

function receiveInitialState(data){
model.userName = data.user_name;
model.userName = window.prompt('Gib Deinen Namen ein:', data.user_name);
if(!model.userName) {
model.userName = data.user_name;
}
model.activeMatch = data.active_match;
model.waitingMatches = data.waiting_matches;

Expand Down

0 comments on commit d426ee7

Please sign in to comment.