From de1607bf1e9ba4429a10f895a6ec45c54daa3161 Mon Sep 17 00:00:00 2001 From: Darren Date: Wed, 30 Apr 2014 17:01:57 +0100 Subject: [PATCH] Startup applet correctly showing the info box --- client/src/applets/startup.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 +})(); -- 2.25.1