fix reloading the add from file iframe

This commit is contained in:
Damien Churchill 2008-11-11 15:44:10 +00:00
parent 374335cae8
commit bc3a7bd057

View File

@ -128,6 +128,7 @@ Deluge.Widgets.AddTorrent.File = new Class({
},
onLoad: function(e) {
this.iframe.set('opacity', 1);
var body = $(this.iframe.contentDocument.body);
this.cancelButton = body.getElement('button.cancel');
this.cancelButton.addEvent('click', this.bound.onCancel);