Browse Source

- Web UI: Automatically close torrent download window once the torrent upload is complete

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
bc52863aec
  1. 4
      src/webui/scripts/client.js
  2. 1
      src/webui/upload.html
  3. 2
      src/webui/uploadframe.html

4
src/webui/scripts/client.js

@ -143,6 +143,10 @@ window.addEvent('domready', function(){ @@ -143,6 +143,10 @@ window.addEvent('domready', function(){
});
function closeWindows() {
MochaUI.closeAll();
}
// This runs when a person leaves your page.
window.addEvent('unload', function(){

1
src/webui/upload.html

@ -11,6 +11,7 @@ @@ -11,6 +11,7 @@
function showSuccess() {
$('myiframe').addClass('invisible');
$('successMessage').removeClass('invisible');
window.parent.closeWindows();
}
</script>
</head>

2
src/webui/uploadframe.html

@ -6,7 +6,6 @@ @@ -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) { @@ -16,7 +15,6 @@ function submitForm(form) {
}
document.uploadForm.submit();
window.parent.showSuccess();
//MochaUI.closeAll();
}
</script>
</head>

Loading…
Cancel
Save