add a toolbar to the bottom of the connections grid

This commit is contained in:
Damien Churchill 2009-02-21 13:20:30 +00:00
parent 604ddc092e
commit 0e47cfd49e

View file

@ -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({