ensure that we are definitely using the filename

This commit is contained in:
Damien Churchill 2010-03-17 23:09:44 +00:00
commit 4031b9f94b

View file

@ -85,6 +85,7 @@ Ext.deluge.add.FileWindow = Ext.extend(Ext.deluge.add.Window, {
scope: this scope: this
}); });
var name = this.form.getForm().findField('torrentFile').value; var name = this.form.getForm().findField('torrentFile').value;
name = name.split('\\').slice(-1)[0];
this.fireEvent('beforeadd', this.torrentId, name); this.fireEvent('beforeadd', this.torrentId, name);
} }
}, },