default most toolbar buttons to being disabled

This commit is contained in:
Damien Churchill 2009-02-12 00:20:13 +00:00
commit 18f7736a22

View file

@ -3,46 +3,53 @@ Deluge.ToolBar = new Ext.Toolbar({
{ {
id: 'create', id: 'create',
cls: 'x-btn-text-icon', cls: 'x-btn-text-icon',
disabled: true,
text: _('Create'), text: _('Create'),
icon: '/icons/16/create.png', icon: '/icons/16/create.png',
handler: torrentAction handler: torrentAction
},{ },{
id: 'add', id: 'add',
cls: 'x-btn-text-icon', cls: 'x-btn-text-icon',
disabled: true,
text: _('Add'), text: _('Add'),
icon: '/icons/16/add.png', icon: '/icons/16/add.png',
handler: torrentAction handler: torrentAction
},{ },{
id: 'remove', id: 'remove',
cls: 'x-btn-text-icon', cls: 'x-btn-text-icon',
disabled: true,
text: _('Remove'), text: _('Remove'),
icon: '/icons/16/remove.png', icon: '/icons/16/remove.png',
handler: torrentAction handler: torrentAction
},{ },'|',{
id: 'pause', id: 'pause',
cls: 'x-btn-text-icon', cls: 'x-btn-text-icon',
disabled: true,
text: _('Pause'), text: _('Pause'),
icon: '/icons/16/pause.png', icon: '/icons/16/pause.png',
handler: torrentAction handler: torrentAction
},{ },{
id: 'resume', id: 'resume',
cls: 'x-btn-text-icon', cls: 'x-btn-text-icon',
disabled: true,
text: _('Resume'), text: _('Resume'),
icon: '/icons/16/start.png', icon: '/icons/16/start.png',
handler: torrentAction handler: torrentAction
},{ },'|',{
id: 'up', id: 'up',
cls: 'x-btn-text-icon', cls: 'x-btn-text-icon',
disabled: true,
text: _('Up'), text: _('Up'),
icon: '/icons/16/up.png', icon: '/icons/16/up.png',
handler: torrentAction handler: torrentAction
},{ },{
id: 'down', id: 'down',
cls: 'x-btn-text-icon', cls: 'x-btn-text-icon',
disabled: true,
text: _('Down'), text: _('Down'),
icon: '/icons/16/down.png', icon: '/icons/16/down.png',
handler: torrentAction handler: torrentAction
},{ },'|',{
id: 'preferences', id: 'preferences',
cls: 'x-btn-text-icon', cls: 'x-btn-text-icon',
text: _('Preferences'), text: _('Preferences'),