From: Jerome Jutteau Date: Tue, 19 Sep 2017 16:58:57 +0000 (+0200) Subject: [BUGFIX] Propely set page title during transfer X-Git-Tag: 3.4.0~39 X-Git-Url: https://git.p6c8.net/jirafeau_project.git/commitdiff_plain/bb8be3e5ee423aae47f500f7aa12cdeecc1b0f77?ds=sidebyside [BUGFIX] Propely set page title during transfer closes #142 Signed-off-by: Jerome Jutteau --- 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)