X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/85b1ac6414601717c4bb94b12ea724e10b78f2a6..23a68ba6e720d9d9449ccea4dd366cb002b4aa0f:/lib/functions.js.php?ds=sidebyside diff --git a/lib/functions.js.php b/lib/functions.js.php index 17c6d0b..b8888a6 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -1,8 +1,9 @@ * Copyright (C) 2015 Jerome Jutteau - * Copyright (C) 2015 Nicola Spanti (RyDroid) + * Copyright (C) 2024 Jirafeau project (see AUTHORS.md) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -18,7 +19,8 @@ * along with this program. If not, see . */ - function template_js_preview_link() { +function template_js_preview_link() +{ ?> if (!!document.getElementById('preview_link')) { @@ -43,8 +45,9 @@ } } // Download page var download_link_href = 'f.php?h=' + reference; @@ -59,7 +62,8 @@ function template_js_download_page() { } // Email link var b = encodeURIComponent(" \"" + filename + "\":") + "%0D" + "%0A"; @@ -71,7 +75,8 @@ function template_js_email_link() { } // Delete link var delete_link_href = 'f.php?h=' + reference + '&d=' + delete_code; @@ -79,7 +84,8 @@ function template_js_delete_link() { document.getElementById('delete_link_text').innerHTML = web_root + delete_link_href; // Direct download link var direct_download_link_href = 'f.php?h=' + reference + '&d=1'; @@ -90,8 +96,9 @@ function template_js_delete_link() { document.getElementById('direct_link').href = direct_download_link_href; document.getElementById('direct_link_text').innerHTML = web_root + direct_download_link_href; // Validity date if (isEmpty(date)) @@ -110,7 +117,7 @@ function template_js_delete_link() { document.getElementById('date').style.display = ''; }