Browse code

Aktualizacia views ked zmenim svoje meno

Cinan Rakosnik authored on 06/05/2013 at 17:10:16
Showing 2 changed files
... ...
@@ -68,6 +68,7 @@ class Xmpp.Views.Contacts.MeView extends Backbone.View
68 68
 
69 69
     $this.blur()
70 70
     App.Com.updateMyVcard(@_getName())
71
+    @model.set('name', @_getName())
71 72
 
72 73
   openChangeState: (e) ->
73 74
     $this = $(e.currentTarget)
... ...
@@ -18,6 +18,8 @@ class Xmpp.Views.Tabbar.TabView extends Backbone.View
18 18
         @destroy()
19 19
     )
20 20
 
21
+    @model.get('who').on('change:name', @render)
22
+
21 23
   fireCloseChatTrigger: ->
22 24
     Backbone.Events.trigger('closeChat', @model)
23 25