mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 05:38:06 -06:00
- Commit a lot of missing files for web interface
This commit is contained in:
10
src/webui/scripts/download.js
Normal file
10
src/webui/scripts/download.js
Normal file
@@ -0,0 +1,10 @@
|
||||
window.addEvent('domready', function(){
|
||||
$('downButton').addEvent('click', function(e){
|
||||
new Event(e).stop();
|
||||
new Ajax('/command/download', {method: 'post', data: {urls: $('urls').value},
|
||||
onComplete: function() {
|
||||
window.parent.document.getElementById('downloadPage').parentNode.removeChild(window.parent.document.getElementById('downloadPage'));
|
||||
}
|
||||
}).request();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user