From: Darren Date: Thu, 9 May 2013 13:32:09 +0000 (+0100) Subject: NewConnection dialog slide-out infobox implemented X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5aa89af2ca05c5d5e4129c70d892e61794c071f8;p=KiwiIRC.git NewConnection dialog slide-out infobox implemented --- 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)