Browse code

FIX: resizovanie chatovacieho okna po otvoreni chatu

Cinan Rakosnik authored on 20/05/2013 at 14:27:08
Showing 2 changed files
... ...
@@ -57,6 +57,7 @@ class Xmpp.Views.Contacts.ContactView extends Backbone.View
57 57
       App.Collections.chats.add(chat)
58 58
 
59 59
     Backbone.Events.trigger('openChat', chat)
60
+    Backbone.Events.trigger('resizeWorkspace')
60 61
 
61 62
   inviteToMultichat: (e) ->
62 63
     e.stopPropagation()
... ...
@@ -76,6 +77,7 @@ class Xmpp.Views.Contacts.ContactView extends Backbone.View
76 76
 
77 77
     App.Collections.chats.add(newChat)
78 78
     App.Com.openNewMultiChat(App.Models.me, @model, newChat)
79
+    Backbone.Events.trigger('resizeWorkspace')
79 80
 
80 81
   kickFromMultiChat: (e) ->
81 82
     e.stopPropagation()
... ...
@@ -71,6 +71,7 @@ class Xmpp.Views.Tabbar.TabView extends Backbone.View
71 71
 
72 72
   switchChatWindow: ->
73 73
     Backbone.Events.trigger('openChat', @model)
74
+    Backbone.Events.trigger('resizeWorkspace')
74 75
 
75 76
   getOwner: ->
76 77
     @model.get('who')