DRY up scrollable pattern
Switch to using gutter class instead of id since there is potentially more than one usage on the page.
This commit is contained in:
parent
a72ea7966d
commit
c73f4d71a7
4 changed files with 29 additions and 24 deletions
|
@ -55,6 +55,7 @@
|
|||
|
||||
Whisper.InboxView = Whisper.View.extend({
|
||||
template: $('#inbox').html(),
|
||||
className: 'inbox',
|
||||
initialize: function () {
|
||||
this.render();
|
||||
|
||||
|
@ -64,7 +65,7 @@
|
|||
this.openConversation.bind(this, null));
|
||||
|
||||
this.inbox = new Whisper.ConversationListView({
|
||||
el : this.$el.find('#contacts'),
|
||||
el : this.$el.find('.conversations'),
|
||||
collection : bg.inbox
|
||||
}).render();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue