b81d93177a
Previously, when changing selection from an unread to a read conversation, the unread conversation would not be deselected. // FREEBIE
18 lines
466 B
JavaScript
18 lines
466 B
JavaScript
/*
|
|
* vim: ts=4:sw=4:expandtab
|
|
*/
|
|
(function () {
|
|
'use strict';
|
|
window.Whisper = window.Whisper || {};
|
|
|
|
Whisper.ConversationListView = Whisper.ListView.extend({
|
|
tagName: 'div',
|
|
itemView: Whisper.ConversationListItemView,
|
|
moveToTop: function(conversation) {
|
|
var $el = this.$('.' + conversation.cid);
|
|
if ($el && $el.length > 0) {
|
|
$el.prependTo(this.el);
|
|
}
|
|
}
|
|
});
|
|
})();
|