make the add torrent window able to add from url again

This commit is contained in:
Damien Churchill 2008-10-09 10:35:11 +00:00
parent 5b06ecd52e
commit 0037922d9e
2 changed files with 4 additions and 3 deletions

View File

@ -66,15 +66,16 @@ Deluge.Widgets.AddTorrent.Url = new Class({
},
onOkClick: function(e) {
e.stop();
var url = this.urlInput.get('value');
Deluge.Client.add_torrent_url(url, {});
e.stop();
this.hide();
},
onCancelClick: function(e) {
e.stop();
this.urlInput.set('value', '');
this.hide();
e.stop();
}
});

View File

@ -205,6 +205,7 @@ ul.moouiMenu li.moouiMenuSep:hover {
}
.moouiWindowTitlebar {
cursor: pointer;
height: 30px;
background: #1c2431 url(/static/images/simple_line.jpg) repeat-x 0px 25px;
}
@ -215,7 +216,6 @@ ul.moouiMenu li.moouiMenuSep:hover {
.moouiWindowTitle {
margin: 5px;
}
/* forms */