X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/48f14e7b05a452683cf059b767ea6b071a300edd..0ebffccac2f5632b3ad31b801519cc0c186f3006:/lib/functions.js.php?ds=sidebyside diff --git a/lib/functions.js.php b/lib/functions.js.php index 983736f..8447551 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -145,11 +145,11 @@ function show_link (reference, delete_code, crypt_key, date) // Email link var filename = document.getElementById('file_select').files[0].name; - var b = encodeURIComponent("Download file \"" + filename + "\":") + "%0D"; + var b = encodeURIComponent(" \"" + filename + "\":") + "%0D"; b += encodeURIComponent(web_root + download_link_href) + "%0D"; if (false == isEmpty(date)) { - b += "%0D" + encodeURIComponent("This file will be available until " + date.format('YYYY-MM-DD hh:mm (GMT O)')) + "%0D"; + b += "%0D" + encodeURIComponent(": " + date.format('YYYY-MM-DD hh:mm (GMT O)')) + "%0D"; document.getElementById('upload_link_email').href = "mailto:?body=" + b + "&subject=" + encodeURIComponent(filename); }