diff options
Diffstat (limited to 'deluge/ui/web/js/deluge-all/add/FileWindow.js')
-rw-r--r-- | deluge/ui/web/js/deluge-all/add/FileWindow.js | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/deluge/ui/web/js/deluge-all/add/FileWindow.js b/deluge/ui/web/js/deluge-all/add/FileWindow.js index 1d990b248..47864affe 100644 --- a/deluge/ui/web/js/deluge-all/add/FileWindow.js +++ b/deluge/ui/web/js/deluge-all/add/FileWindow.js @@ -50,24 +50,31 @@ Ext.define('Deluge.add.FileWindow', { initComponent: function() { this.callParent(arguments); - this.addButton(_('Add'), this.onAddClick, this); + this.addDocked({ + xtype: 'toolbar', + dock: 'bottom', + defaultType: 'button', + items: [ + '->', + {text: _('Add'), handler: this.onAddClick, scope: this} + ] + }); this.form = this.add({ xtype: 'form', + width: 300, baseCls: 'x-plain', - labelWidth: 35, autoHeight: true, - fileUpload: true, + items: [{ - xtype: 'fileuploadfield', + xtype: 'filefield', id: 'torrentFile', - width: 280, + anchor: '100%', emptyText: _('Select a torrent'), + labelWidth: 35, fieldLabel: _('File'), name: 'file', - buttonCfg: { - text: _('Browse') + '...' - } + buttonText: _('Browse') + '...' }] }); }, |