From 71ef3f3ddc1596e840342f7f2796b68b94b5dab0 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Thu, 2 Apr 2009 09:37:21 +0000 Subject: [PATCH] change the fileuploadbutton back to just a button, we'll open a new window, it'll be a cleaner solution --- deluge/ui/web/js/deluge-add.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/deluge/ui/web/js/deluge-add.js b/deluge/ui/web/js/deluge-add.js index 39b2bcb47..f0faa6599 100644 --- a/deluge/ui/web/js/deluge-add.js +++ b/deluge/ui/web/js/deluge-add.js @@ -157,15 +157,12 @@ Deluge.Add.Grid = new Ext.grid.GridPanel({ margins: '5 5 5 5', bbar: new Ext.Toolbar({ items: [ - new Ext.form.FileUploadField({ + { id: 'file', - buttonOnly: true, - buttonCfg: { - cls: 'x-btn-text-icon', - icon: '/icons/add_file.png', - text: _('File') - } - }), { + cls: 'x-btn-text-icon', + icon: '/icons/add_file.png', + text: _('File') + }, { id: 'url', cls: 'x-btn-text-icon', text: _('Url'),