2015-09-07 23:53:43 +02:00
|
|
|
/*
|
|
|
|
* vim: ts=4:sw=4:expandtab
|
2015-01-19 01:16:24 +01:00
|
|
|
*/
|
2014-07-22 20:55:26 +02:00
|
|
|
(function () {
|
2015-03-06 00:44:53 +01:00
|
|
|
'use strict';
|
|
|
|
window.Whisper = window.Whisper || {};
|
2014-07-22 20:55:26 +02:00
|
|
|
|
2015-03-06 00:44:53 +01:00
|
|
|
Whisper.ConversationListView = Whisper.ListView.extend({
|
|
|
|
tagName: 'div',
|
|
|
|
itemView: Whisper.ConversationListItemView,
|
2015-09-14 22:30:21 +02:00
|
|
|
moveToTop: function(conversation) {
|
|
|
|
var $el = this.$('.' + conversation.cid);
|
|
|
|
if ($el && $el.length > 0) {
|
|
|
|
$el.prependTo(this.el);
|
|
|
|
}
|
2015-03-06 00:44:53 +01:00
|
|
|
}
|
|
|
|
});
|
2014-07-22 20:55:26 +02:00
|
|
|
})();
|