Skip to content

Commit

Permalink
Returned the Dancing Man.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pairing Machine committed Jan 26, 2012
1 parent 31c10bc commit a2f7699
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 0 additions & 2 deletions assets/js/views/participant_layout.js
Expand Up @@ -13,8 +13,6 @@ var Views = (function(ns){
this.$("#question_container").append(new Views.WelcomePanel({messageBus: this.messageBus}).render().el);
this.$("#discussion_container").append(new Views.DiscussionPanel({messageBus: this.messageBus}).render().el);

this.$('input#name').focus();

return this;
}

Expand Down
10 changes: 9 additions & 1 deletion assets/js/views/welcome_panel.js
Expand Up @@ -7,6 +7,9 @@ var Views = (function(ns){
view: {
"click #name_button": "setName",
"keypress input#name": "setNameOnEnter"
},
messageBus: {
"question-changed": "hideDancingMan"
}
},

Expand All @@ -29,8 +32,13 @@ var Views = (function(ns){
if (name.length > 0){
this.name = name;
this.messageBus.emit("user-join", {name: this.name});
this.$el.hide();
this.$el.empty().append($('<div id="please_wait"></div>'));
}
},

hideDancingMan: function() {
if(this.name)
this.$el.hide();
}

});
Expand Down

0 comments on commit a2f7699

Please sign in to comment.