From 0e47cfd49e9519b8d15f6f1feafad9ff0e374b92 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Sat, 21 Feb 2009 13:20:30 +0000 Subject: [PATCH] add a toolbar to the bottom of the connections grid --- deluge/ui/web/js/deluge-connections.js | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/deluge/ui/web/js/deluge-connections.js b/deluge/ui/web/js/deluge-connections.js index ff96dac91..35fe7308c 100644 --- a/deluge/ui/web/js/deluge-connections.js +++ b/deluge/ui/web/js/deluge-connections.js @@ -106,7 +106,27 @@ Deluge.Connections.Grid = new Ext.grid.GridPanel({ autoExpandColumn: 'host', deferredRender:false, autoScroll:true, - margins: '0 0 0 0' + margins: '0 0 0 0', + bbar: new Ext.Toolbar({ + items: [ + { + id: 'add', + cls: 'x-btn-text-icon', + text: _('Add'), + icon: '/icons/16/add.png' + }, { + id: 'remove', + cls: 'x-btn-text-icon', + text: _('Remove'), + icon: '/icons/16/remove.png' + }, '->', { + id: 'stop', + cls: 'x-btn-text-icon', + text: _('Stop Daemon'), + icon: '/icons/16/error.png' + } + ] + }) }); Deluge.Connections.Window = new Ext.Window({