From 18f7736a22b588d55c4b62a7a724f0eaf4df9547 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Thu, 12 Feb 2009 00:20:13 +0000 Subject: [PATCH] default most toolbar buttons to being disabled --- deluge/ui/web/js/deluge-bars.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/deluge/ui/web/js/deluge-bars.js b/deluge/ui/web/js/deluge-bars.js index 4e635e950..e2ac1216d 100644 --- a/deluge/ui/web/js/deluge-bars.js +++ b/deluge/ui/web/js/deluge-bars.js @@ -3,46 +3,53 @@ Deluge.ToolBar = new Ext.Toolbar({ { id: 'create', cls: 'x-btn-text-icon', + disabled: true, text: _('Create'), icon: '/icons/16/create.png', handler: torrentAction },{ id: 'add', cls: 'x-btn-text-icon', + disabled: true, text: _('Add'), icon: '/icons/16/add.png', handler: torrentAction },{ id: 'remove', cls: 'x-btn-text-icon', + disabled: true, text: _('Remove'), icon: '/icons/16/remove.png', handler: torrentAction - },{ + },'|',{ id: 'pause', cls: 'x-btn-text-icon', + disabled: true, text: _('Pause'), icon: '/icons/16/pause.png', handler: torrentAction },{ id: 'resume', cls: 'x-btn-text-icon', + disabled: true, text: _('Resume'), icon: '/icons/16/start.png', handler: torrentAction - },{ + },'|',{ id: 'up', cls: 'x-btn-text-icon', + disabled: true, text: _('Up'), icon: '/icons/16/up.png', handler: torrentAction },{ id: 'down', cls: 'x-btn-text-icon', + disabled: true, text: _('Down'), icon: '/icons/16/down.png', handler: torrentAction - },{ + },'|',{ id: 'preferences', cls: 'x-btn-text-icon', text: _('Preferences'),