mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 14:57:52 +00:00
- Web UI: Automatically close torrent download window once the torrent upload is complete
This commit is contained in:
parent
68092f3b5c
commit
bc52863aec
@ -143,6 +143,10 @@ window.addEvent('domready', function(){
|
||||
|
||||
});
|
||||
|
||||
function closeWindows() {
|
||||
MochaUI.closeAll();
|
||||
}
|
||||
|
||||
// This runs when a person leaves your page.
|
||||
|
||||
window.addEvent('unload', function(){
|
||||
|
@ -11,6 +11,7 @@
|
||||
function showSuccess() {
|
||||
$('myiframe').addClass('invisible');
|
||||
$('successMessage').removeClass('invisible');
|
||||
window.parent.closeWindows();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
@ -6,7 +6,6 @@
|
||||
<link rel="stylesheet" href="css/style.css" type="text/css" />
|
||||
<link rel="stylesheet" href="css/mocha.css" type="text/css" />
|
||||
<script type="text/javascript" src="scripts/mootools-1.2-core-yc.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="scripts/mocha.js"></script>
|
||||
<!-- <script type="text/javascript" src="scripts/upload.js" charset="utf-8"></script> -->
|
||||
<script type="text/javascript">
|
||||
function submitForm(form) {
|
||||
@ -16,7 +15,6 @@ function submitForm(form) {
|
||||
}
|
||||
document.uploadForm.submit();
|
||||
window.parent.showSuccess();
|
||||
//MochaUI.closeAll();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
Loading…
Reference in New Issue
Block a user