X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/0a5462c3311b4541a858b8e719ae8548877c7a62..b66edd26d7bb21c50dbfa8a178ebe3ec8b608a85:/lib/functions.js?ds=sidebyside diff --git a/lib/functions.js b/lib/functions.js index 2aa3bd6..24c7df3 100755 --- a/lib/functions.js +++ b/lib/functions.js @@ -18,16 +18,16 @@ function show_link (url, reference, delete_code, crypt_key, date) { - var download_link = url + 'file.php?h=' + reference; - var download_link_href = url + 'file.php?h=' + reference; + var download_link = url + 'f.php?h=' + reference; + var download_link_href = url + 'f.php?h=' + reference; if (crypt_key.length > 0) { download_link += '&k=' + crypt_key; download_link_href += '&k=' + crypt_key; } - var delete_link = url + 'file.php?h=' + reference + '&d=' + delete_code; - var delete_link_href = url + 'file.php?h=' + reference + '&d=' + delete_code; + var delete_link = url + 'f.php?h=' + reference + '&d=' + delete_code; + var delete_link_href = url + 'f.php?h=' + reference + '&d=' + delete_code; document.getElementById('upload_link').innerHTML = download_link; document.getElementById('upload_link').href = download_link_href; @@ -62,7 +62,7 @@ function upload_progress (e) */ var p = Math.round (e.loaded * 100 / e.total); if (p == 100) - show_upload_progression ('Finalizing ...'); + show_upload_progression (' '); else show_upload_progression (p.toString() + '%'); } @@ -180,7 +180,7 @@ function async_upload_progress (e) return; var p = Math.round ((e.loaded + async_global_transfered) * 100 / (async_global_file.size)); if (p == 100) - show_upload_progression ('Finalizing...'); + show_upload_progression (' '); else show_upload_progression (p.toString() + '%'); }