You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			23 lines
		
	
	
		
			465 B
		
	
	
	
		
			JavaScript
		
	
			
		
		
	
	
			23 lines
		
	
	
		
			465 B
		
	
	
	
		
			JavaScript
		
	
| var Whisper = Whisper || {};
 | |
| 
 | |
| (function () {
 | |
|   'use strict';
 | |
| 
 | |
|   Whisper.ConversationListView = Whisper.ListView.extend({
 | |
|     tagName: 'div',
 | |
|     id: 'contacts',
 | |
|     itemView: Whisper.ConversationListItemView,
 | |
|     collection: Whisper.Threads,
 | |
| 
 | |
|     events: {
 | |
|       'click .contact': 'select',
 | |
|     },
 | |
| 
 | |
|     select: function(e) {
 | |
|       var target = $(e.target).closest('.contact');
 | |
|       target.siblings().removeClass('selected');
 | |
|       return false;
 | |
|     },
 | |
|   });
 | |
| })();
 |