Startup animation adjusting layout
authorDarren <darren@darrenwhitlen.com>
Thu, 13 Oct 2011 22:29:39 +0000 (23:29 +0100)
committerDarren <darren@darrenwhitlen.com>
Thu, 13 Oct 2011 22:29:39 +0000 (23:29 +0100)
client/js/front.js
client/js/front.ui.js

index 55bf7a6960fdcd876054f92da25a53b6cd6b11ae..10bd567f9b69c4c97b62b8d580f4aa82c52f6622 100644 (file)
@@ -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);
index 341a1b16545075c96bdee450b4e7c0b8ec7e6efd..6b0d901d6035ade75cef9e5bad2ab355c4b9dcc9 100644 (file)
@@ -351,13 +351,17 @@ kiwi.front.ui = {
 \r
 \r
     barsShow: function () {\r
-        $('#kiwi .toolbars').slideDown();\r
         $('#kiwi .control').slideDown();\r
+        $('#kiwi .toolbars').slideDown(400, function () {\r
+            kiwi.front.ui.doLayoutSize();\r
+        });\r
     },\r
 \r
     barsHide: function () {\r
-        $('#kiwi .toolbars').slideUp();\r
         $('#kiwi .control').slideUp();\r
+        $('#kiwi .toolbars').slideUp(400, function () {\r
+            kiwi.front.ui.doLayoutSize();\r
+        });\r
     },\r
 \r
 \r