From 2631f093154a21883c8ff08fcb4c4f63ff3c4e30 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Tue, 7 Apr 2009 19:54:06 +0000 Subject: [PATCH] fix the sidebars margins whilst collapsed --- deluge/ui/web/js/deluge-bars.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/deluge/ui/web/js/deluge-bars.js b/deluge/ui/web/js/deluge-bars.js index c9c4ab669..89d44d4b6 100644 --- a/deluge/ui/web/js/deluge-bars.js +++ b/deluge/ui/web/js/deluge-bars.js @@ -57,6 +57,10 @@ Deluge.ToolBar = { Deluge.Connections.Window.show(); }, + onPreferencesClick: function() { + Deluge.Preferences.show(); + }, + onTorrentAction: function(item) { var selection = Deluge.Torrents.getSelections(); var ids = new Array(); @@ -154,7 +158,8 @@ Deluge.ToolBar.Bar = new Ext.Toolbar({ cls: 'x-btn-text-icon', text: _('Preferences'), icon: '/icons/preferences.png', - handler: Deluge.ToolBar.onTorrentAction + handler: Deluge.ToolBar.onPreferencesClick, + scope: Deluge.ToolBar },{ id: 'connectionman', cls: 'x-btn-text-icon', @@ -488,5 +493,6 @@ Deluge.SideBar.Config = { minSize: 175, collapsible: true, margins: '5 0 0 5', + cmargins: '5 5 0 5', listeners: {'render': {scope: Deluge.SideBar, fn: Deluge.SideBar.onRender}} } \ No newline at end of file