From bb8be3e5ee423aae47f500f7aa12cdeecc1b0f77 Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Tue, 19 Sep 2017 18:58:57 +0200 Subject: [PATCH 1/1] [BUGFIX] Propely set page title during transfer closes #142 Signed-off-by: Jerome Jutteau --- lib/functions.js.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/functions.js.php b/lib/functions.js.php index 6ee335d..d552cd8 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 = 'Jirafeau - 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 = 'Jirafeau - ' + percentage; + document.title = " - " + percentage; } function hide_upload_progression () @@ -211,7 +211,7 @@ function hide_upload_progression () document.getElementById('uploaded_percentage').style.display = 'none'; document.getElementById('uploaded_speed').style.display = 'none'; document.getElementById('uploaded_time').style.display = 'none'; - document.title = 'Jirafeau'; + document.title = ""; } function upload_progress (e) -- 2.34.1