From: pixelbrackets Date: Tue, 19 Dec 2017 13:01:56 +0000 (+0100) Subject: [FEATURE] Switch upload status in tab title X-Git-Tag: 3.4.0~37 X-Git-Url: https://git.p6c8.net/jirafeau_project.git/commitdiff_plain/825e15ed5fca89b6ee08ecfba03dcccd5e4744b3 [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 --- diff --git a/lib/functions.js.php b/lib/functions.js.php index 7177b85..7d248b5 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -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 = " - 100%"; + document.title = "100% - "; // 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 = " - " + percentage; + document.title = percentage + " - "; } function hide_upload_progression ()