From: Darren Date: Wed, 30 Apr 2014 16:01:57 +0000 (+0100) Subject: Startup applet correctly showing the info box X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=de1607bf1e9ba4429a10f895a6ec45c54daa3161;p=KiwiIRC.git Startup applet correctly showing the info box --- diff --git a/client/src/applets/startup.js b/client/src/applets/startup.js index 54d7eef..bce803c 100644 --- a/client/src/applets/startup.js +++ b/client/src/applets/startup.js @@ -19,12 +19,17 @@ 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 +})();