Commit 825e15ed authored by Dan Untenzu's avatar Dan Untenzu

[FEATURE] Switch upload status in tab title

Switch the upload status and project name in the tab title,
to show the current upload status in small tabs as well.

Refs #141
parent a4bfa234
Pipeline #15292588 (#) passed with stage
in 2 minutes and 29 seconds
......@@ -119,7 +119,7 @@ function show_link (reference, delete_code, crypt_key, date)
document.getElementById('uploading').style.display = 'none';
document.getElementById('upload').style.display = 'none';
document.getElementById('upload_finished').style.display = '';
document.title = "<?php echo empty($cfg['title']) ? 'Jirafeau' : $cfg['title']; ?> - 100%";
document.title = "100% - <?php echo empty($cfg['title']) ? 'Jirafeau' : $cfg['title']; ?>";
// Download page
var download_link_href = 'f.php?h=' + reference;
......@@ -203,7 +203,7 @@ function show_upload_progression (percentage, speed, time_left)
document.getElementById('uploaded_percentage').innerHTML = percentage;
document.getElementById('uploaded_speed').innerHTML = speed;
document.getElementById('uploaded_time').innerHTML = time_left;
document.title = "<?php echo empty($cfg['title']) ? 'Jirafeau' : $cfg['title']; ?> - " + percentage;
document.title = percentage + " - <?php echo empty($cfg['title']) ? 'Jirafeau' : $cfg['title']; ?>";
}
function hide_upload_progression ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment