Author: damoxc
Revision: 5000
Log:
begin to add the options form and also fix the binds on the
got_torrent_info calls
Diff:
Modified: trunk/deluge/ui/web/js/deluge-add.js
===================================================================
--- trunk/deluge/ui/web/js/deluge-add.js 2009-04-02 20:10:59 UTC (rev
4999)
+++ trunk/deluge/ui/web/js/deluge-add.js 2009-04-02 20:40:24 UTC (rev
5000)
@@ -220,7 +220,21 @@
items: [Deluge.Add.Files]
},{
id: 'options',
- title: _('Options')
+ title: _('Options'),
+ items: [new Ext.form.FormPanel({
+ xtype: 'form',
+ defaultType: 'textfield',
+ items: [{
+ xtype: 'fieldset',
+ title: _('Download Location'),
+ items: [{
+ fieldLabel: '',
+ id: 'download_location',
+ name: 'download_location',
+ anchor: '100%'
+ }]
+ }]
+ })]
}]
});
@@ -240,7 +254,7 @@
var filename = upload.result.toString();
this.form.items.get('torrentFile').setValue('');
Deluge.Client.web.get_torrent_info(filename, {
- onSuccess: Deluge.Add.onTorrentAdded.bindWithEvent(this)
+ onSuccess:
Deluge.Add.onTorrentAdded.bindWithEvent(Deluge.Add)
});
}
}
@@ -298,7 +312,7 @@
onDownload: function(filename) {
this.form.items.get('url').setValue('');
Deluge.Client.web.get_torrent_info(filename, {
- onSuccess: Deluge.Add.onTorrentAdded.bindWithEvent(this)
+ onSuccess:
Deluge.Add.onTorrentAdded.bindWithEvent(Deluge.Add)
});
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---