Changeset 8582915 for deluge/ui/web/js/Deluge.Add.File.js
- Timestamp:
- 04/27/2009 08:48:39 PM (16 years ago)
- Branches:
- 2.0.x, develop, extjs4-port, master
- Children:
- b88542f
- Parents:
- 2ac545d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
deluge/ui/web/js/Deluge.Add.File.js
r2ac545d r8582915 66 66 onAdd: function(field, e) { 67 67 if (this.form.getForm().isValid()) { 68 this.torrentId = this.createTorrentId(); 68 69 this.form.getForm().submit({ 69 70 url: '/upload', … … 72 73 scope: this 73 74 }); 75 var name = this.form.getForm().findField('torrentFile').value; 76 this.fireEvent('beforeadd', this.torrentId, name); 74 77 } 75 this.fireEvent('beforeadd', null); 78 }, 79 80 onGotInfo: function(info, obj, response, request) { 81 info['filename'] = request.options.filename; 82 this.fireEvent('add', this.torrentId, info); 76 83 }, 77 84 … … 85 92 filename: filename 86 93 }); 87 },88 89 onGotInfo: function(info, obj, response, request) {90 info['filename'] = request.options.filename;91 this.fireEvent('add', info);92 94 } 93 95 });
Note:
See TracChangeset
for help on using the changeset viewer.