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

index 54d7eef3029dd772faabdafe1d7ebda0671f1f3b..23c9d7fdcd0bf6044dcb66d0bae62c7d4e1aeefa 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();
             });
         },