Author: damoxc
Revision: 6157
Log:
fix some issues with the add window
Diff:
Modified: trunk/deluge/ui/web/js/deluge-all/Deluge.Add.File.js
===================================================================
--- trunk/deluge/ui/web/js/deluge-all/Deluge.Add.File.js 2010-01-26
18:17:24 UTC (rev 6156)
+++ trunk/deluge/ui/web/js/deluge-all/Deluge.Add.File.js 2010-01-26
18:18:14 UTC (rev 6157)
@@ -52,7 +52,7 @@
initComponent: function() {
Ext.deluge.add.FileWindow.superclass.initComponent.call(this);
- this.addButton(_('Add'), this.onAdd, this);
+ this.addButton(_('Add'), this.onAddClick, this);
this.form = this.add({
xtype: 'form',
@@ -73,7 +73,7 @@
});
},
- onAdd: function(field, e) {
+ onAddClick: function(field, e) {
if (this.form.getForm().isValid()) {
this.torrentId = this.createTorrentId();
this.form.getForm().submit({
Modified: trunk/deluge/ui/web/js/deluge-all/Deluge.Add.Url.js
===================================================================
--- trunk/deluge/ui/web/js/deluge-all/Deluge.Add.Url.js 2010-01-26 18:17:24 UTC
(rev 6156)
+++ trunk/deluge/ui/web/js/deluge-all/Deluge.Add.Url.js 2010-01-26 18:18:14 UTC
(rev 6157)
@@ -52,7 +52,7 @@
initComponent: function() {
Ext.deluge.add.UrlWindow.superclass.initComponent.call(this);
- this.addButton(_('Add'), this.onAdd, this);
+ this.addButton(_('Add'), this.onAddClick, this);
var form = this.add({
xtype: 'form',
@@ -78,7 +78,7 @@
this.cookieField.on('specialkey', this.onAdd, this);
},
- onAdd: function(field, e) {
+ onAddClick: function(field, e) {
if ((field.id == 'url' || field.id == 'cookies') && e.getKey()
!= e.ENTER) return;
var field = this.urlField;
Modified: trunk/deluge/ui/web/js/deluge-all/Deluge.Add.js
===================================================================
--- trunk/deluge/ui/web/js/deluge-all/Deluge.Add.js 2010-01-26 18:17:24 UTC
(rev 6156)
+++ trunk/deluge/ui/web/js/deluge-all/Deluge.Add.js 2010-01-26 18:18:14 UTC
(rev 6157)
@@ -49,7 +49,7 @@
initComponent: function() {
Ext.deluge.add.OptionsPanel.superclass.initComponent.call(this);
- this.files = this.add(new Ext.tree.ColumnTree({
+ this.files = this.add(new Ext.ux.tree.TreeGrid({
layout: 'fit',
title: _('Files'),
rootVisible: false,
@@ -64,14 +64,12 @@
width: 275,
dataIndex: 'filename'
},{
+ xtype: 'tgrendercolumn',
header: _('Size'),
width: 80,
- dataIndex: 'size'
- }],
-
- root: new Ext.tree.AsyncTreeNode({
- text: 'Files'
- })
+ dataIndex: 'size',
+ renderer: fsize
+ }]
}));
new Ext.tree.TreeSorter(this.files, {
folderSort: true
@@ -146,7 +144,7 @@
autoHeight: true,
labelWidth: 100,
width: 200,
- defaultType: 'uxspinner'
+ defaultType: 'spinnerfield'
});
this.optionsManager.bind('max_download_speed', fieldset.add({
fieldLabel: _('Max Down Speed'),
@@ -560,4 +558,4 @@
this.url.show();
}
});
-//Deluge.Add = new Ext.deluge.add.AddWindow();
+Deluge.Add = new Ext.deluge.add.AddWindow();
--
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en.