Fix some markup issues
* Remove spurious search div * Fix nested uls * Use class name selected, not closed (the inverse) * Restor nacl div
This commit is contained in:
parent
c2beda8e40
commit
546cdf82cb
5 changed files with 9 additions and 10 deletions
|
@ -16,8 +16,6 @@ var Whisper = Whisper || {};
|
|||
|
||||
this.listenTo(this.model, 'change', this.render); // auto update
|
||||
this.listenTo(this.model, 'destroy', this.remove); // auto update
|
||||
|
||||
this.$el.addClass('closed');
|
||||
},
|
||||
|
||||
open: function(e) {
|
||||
|
|
|
@ -15,9 +15,9 @@ var Whisper = Whisper || {};
|
|||
|
||||
select: function(e) {
|
||||
var target = $(e.target).closest('.conversation');
|
||||
if (target.hasClass('closed')) {
|
||||
target.siblings().addClass('closed');
|
||||
target.removeClass('closed').addClass('selected');
|
||||
if (!target.is('.selected')) {
|
||||
target.siblings().removeClass('slected');
|
||||
target.addClass('selected');
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
|
|
@ -12,7 +12,7 @@ var Whisper = Whisper || {};
|
|||
this.$el.html(Mustache.render(this.template));
|
||||
|
||||
this.view = new Whisper.MessageListView({collection: this.model.messages()});
|
||||
this.$el.find('.discussion').append(this.view.el);
|
||||
this.$el.find('.discussion-container').append(this.view.el);
|
||||
},
|
||||
events: {
|
||||
'submit .send': 'sendMessage',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue