...
|
...
|
@@ -55,7 +55,7 @@ class Xmpp.Views.Contacts.ContactView extends Backbone.View
|
55
|
55
|
Backbone.Events.trigger('openChat', chat)
|
56
|
56
|
|
57
|
57
|
inviteToMultichat: (e) ->
|
58
|
|
- e.stopPropagation();
|
|
58
|
+ e.stopPropagation()
|
59
|
59
|
App.debug 'iniviting to multichat'
|
60
|
60
|
multichat = App.Collections.chats.activeChat
|
61
|
61
|
if not multichat or not multichat.get('isMultiChat')
|
...
|
...
|
@@ -64,7 +64,7 @@ class Xmpp.Views.Contacts.ContactView extends Backbone.View
|
64
|
64
|
App.Com.inviteToChat(multichat, @model, App.Models.me.get('jid'))
|
65
|
65
|
|
66
|
66
|
newMultiChat: (e) ->
|
67
|
|
- e.stopPropagation();
|
|
67
|
+ e.stopPropagation()
|
68
|
68
|
App.debug 'new multichat'
|
69
|
69
|
|
70
|
70
|
newChat = new Xmpp.Models.Chat(isMultiChat: true)
|
...
|
...
|
@@ -74,7 +74,7 @@ class Xmpp.Views.Contacts.ContactView extends Backbone.View
|
74
|
74
|
App.Com.openNewMultiChat(App.Models.me, @model, newChat)
|
75
|
75
|
|
76
|
76
|
kickFromMultiChat: (e) ->
|
77
|
|
- e.stopPropagation();
|
|
77
|
+ e.stopPropagation()
|
78
|
78
|
App.debug 'kick him from multichat!'
|
79
|
79
|
|
80
|
80
|
multichat = App.Collections.chats.activeChat
|
...
|
...
|
@@ -100,8 +100,5 @@ class Xmpp.Views.Contacts.ContactView extends Backbone.View
|
100
|
100
|
else if activeChat.get('isMultiChat') and activeChat.isMeOwner()
|
101
|
101
|
$(@el).find('.action .kick').show()
|
102
|
102
|
|
103
|
|
-
|
104
|
|
- $(@el).find('.action').show()
|
105
|
|
-
|
106
|
103
|
hideIcons: ->
|
107
|
|
- $(@el).find('.action').hide()
|
108
|
104
|
\ No newline at end of file
|
|
105
|
+ $(@el).find('.action .multichat, .action .invite, .action .kick').hide()
|