Browse code

Pridany binding pri ukonceni spojenia s websocket serverom

Cinan Rakosnik authored on 06/05/2013 at 16:00:34
Showing 1 changed files
... ...
@@ -109,6 +109,10 @@ this.App =
109 109
       App.Views.tabbar = new Xmpp.Views.Tabbar.TabbarView()
110 110
 
111 111
     _bindListeners: (callback) ->
112
+      App._dispatcher.bind('connection_closed', ->
113
+        window.location.reload()
114
+      )
115
+
112 116
       App._dispatcher.bind('app.client.connected', (jid) ->
113 117
         callback?(jid)
114 118
       )