From de578961459b5c93fb8808827a50cf7e09b6ee27 Mon Sep 17 00:00:00 2001 From: Darren Date: Thu, 13 Oct 2011 23:29:39 +0100 Subject: [PATCH] Startup animation adjusting layout --- client/js/front.js | 7 +++++-- client/js/front.ui.js | 8 ++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/client/js/front.js b/client/js/front.js index 55bf7a6..10bd567 100644 --- a/client/js/front.js +++ b/client/js/front.js @@ -91,14 +91,17 @@ kiwi.front = { kiwi.front.ui.doLayout(); try { - kiwi.front.run('/connect ' + netsel.val() + ' ' + netport.val() + ' ' + (netssl.is(':checked') ? 'true' : 'false') + ' ' + netpass.val()); + tmp = '/connect ' + netsel.val() + ' ' + netport.val() + ' '; + tmp += (netssl.is(':checked') ? 'true' : 'false') + ' ' + netpass.val(); + kiwi.front.run(tmp); } catch (e) { console.log(e); } $('#kiwi .connectwindow').slideUp('', kiwi.front.ui.barsShow); - // Listen for keyboard activity on any window, and forward it to the input box so users can type even if the input box is not in focus + // Listen for keyboard activity on any window, and forward it to the + // input box so users can type even if the input box is not in focus forwardKeys = function (event) { $('#kiwi_msginput').focus(); $('#kiwi_msginput').trigger(event); diff --git a/client/js/front.ui.js b/client/js/front.ui.js index 341a1b1..6b0d901 100644 --- a/client/js/front.ui.js +++ b/client/js/front.ui.js @@ -351,13 +351,17 @@ kiwi.front.ui = { barsShow: function () { - $('#kiwi .toolbars').slideDown(); $('#kiwi .control').slideDown(); + $('#kiwi .toolbars').slideDown(400, function () { + kiwi.front.ui.doLayoutSize(); + }); }, barsHide: function () { - $('#kiwi .toolbars').slideUp(); $('#kiwi .control').slideUp(); + $('#kiwi .toolbars').slideUp(400, function () { + kiwi.front.ui.doLayoutSize(); + }); }, -- 2.25.1