| ... | ... |
@@ -8,7 +8,9 @@ class Xmpp.Views.Contacts.ContactView extends Backbone.View |
| 8 | 8 |
events: |
| 9 | 9 |
'click .invite': 'inviteToMultichat' |
| 10 | 10 |
'click .chat': 'newMultiChat' |
| 11 |
- 'click': 'startChat' |
|
| 11 |
+ click: 'startChat' |
|
| 12 |
+ mouseover: 'showIcons' |
|
| 13 |
+ mouseleave: 'hideIcons' |
|
| 12 | 14 |
|
| 13 | 15 |
initialize: () -> |
| 14 | 16 |
_.bindAll(this) |
| ... | ... |
@@ -70,4 +72,10 @@ class Xmpp.Views.Contacts.ContactView extends Backbone.View |
| 70 | 70 |
App.Com.openNewMultiChat(App.Models.me, withWhom, newChat) |
| 71 | 71 |
|
| 72 | 72 |
openChatById: (chatId) -> |
| 73 |
- chat = App.Collections.chats.findById(chatId) |
|
| 74 | 73 |
\ No newline at end of file |
| 74 |
+ chat = App.Collections.chats.findById(chatId) |
|
| 75 |
+ |
|
| 76 |
+ showIcons: -> |
|
| 77 |
+ $(@el).find('.action').show()
|
|
| 78 |
+ |
|
| 79 |
+ hideIcons: -> |
|
| 80 |
+ $(@el).find('.action').hide()
|
|
| 75 | 81 |
\ No newline at end of file |