From 825e15ed5fca89b6ee08ecfba03dcccd5e4744b3 Mon Sep 17 00:00:00 2001 From: pixelbrackets Date: Tue, 19 Dec 2017 14:01:56 +0100 Subject: [PATCH 1/1] [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 --- lib/functions.js.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 () -- 2.34.1