From 5aa89af2ca05c5d5e4129c70d892e61794c071f8 Mon Sep 17 00:00:00 2001 From: Darren Date: Thu, 9 May 2013 14:32:09 +0100 Subject: [PATCH] NewConnection dialog slide-out infobox implemented --- client/assets/css/style.css | 2 +- client/assets/dev/view.js | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/client/assets/css/style.css b/client/assets/css/style.css index 49ab2ed..76abec0 100644 --- a/client/assets/css/style.css +++ b/client/assets/css/style.css @@ -165,7 +165,7 @@ html, body { height:100%; } /** * Server selection dialog */ -#kiwi .server_select { width:320px; margin:0 auto; overflow:hidden; } +#kiwi .server_select { position:relative; width:320px; margin:0 auto; overflow:hidden; } #kiwi .server_select.initial { margin-top: 3em; } #kiwi .server_select .more { display: none; } #kiwi .server_select button { } diff --git a/client/assets/dev/view.js b/client/assets/dev/view.js index 4415fc5..11ae8fe 100644 --- a/client/assets/dev/view.js +++ b/client/assets/dev/view.js @@ -302,6 +302,20 @@ _kiwi.view.ServerSelect = function () { state = new_state; }, + infoBoxShow: function() { + var $side_panel = this.$el.find('.side_panel'); + this.$el.animate({ + width: parseInt($side_panel.css('left'), 10) + $side_panel.find('.content:first').outerWidth() + }); + }, + + infoBoxHide: function() { + var $side_panel = this.$el.find('.side_panel'); + this.$el.animate({ + width: parseInt($side_panel.css('left'), 10) + }); + }, + setStatus: function (text, class_name) { $('.status', this.$el) .text(text) -- 2.25.1