Startup applet correctly showing the info box
authorDarren <darren@darrenwhitlen.com>
Wed, 30 Apr 2014 16:01:57 +0000 (17:01 +0100)
committerDarren <darren@darrenwhitlen.com>
Wed, 30 Apr 2014 16:01:57 +0000 (17:01 +0100)
client/src/applets/startup.js

index 54d7eef3029dd772faabdafe1d7ebda0671f1f3b..bce803c2016d20f21a6923d6f341e1e2ade7ea3b 100644 (file)
 
             if ($info.html()) {
                 connection_dialog.view.infoBoxSet($info);
-                connection_dialog.view.infoBoxShow();
+            } else {
+                $info = null;
             }
 
             this.listenTo(connection_dialog, 'connected', this.newConnectionConnected);
 
             _.defer(function(){
+                if ($info) {
+                    connection_dialog.view.infoBoxShow();
+                }
+
                 connection_dialog.view.$el.find('.nick').select();
             });
         },
@@ -46,4 +51,4 @@
 
 
     _kiwi.model.Applet.register('kiwi_startup', applet);
-})();
\ No newline at end of file
+})();