From f919230f63aade2df7b12a9c9ab28c7cd59868d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Tue, 22 Jan 2013 17:59:33 +0100 Subject: [PATCH] remove inline JavaScript --- apps/files_trashbin/js/part.list.php | 19 +++++++++++++++++++ apps/files_trashbin/templates/part.list.php | 13 +------------ 2 files changed, 20 insertions(+), 12 deletions(-) create mode 100644 apps/files_trashbin/js/part.list.php diff --git a/apps/files_trashbin/js/part.list.php b/apps/files_trashbin/js/part.list.php new file mode 100644 index 00000000000..c4ecd1ca959 --- /dev/null +++ b/apps/files_trashbin/js/part.list.php @@ -0,0 +1,19 @@ + +* This file is licensed under the Affero General Public License version 3 or +* later. +* See the COPYING-README file. +*/ + +// Set the content type to Javascript +header("Content-type: text/javascript"); + +// Disallow caching +header("Cache-Control: no-cache, must-revalidate"); +header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); + +echo " +var disableDownloadActions = true; +var disableSharing = true; +"; diff --git a/apps/files_trashbin/templates/part.list.php b/apps/files_trashbin/templates/part.list.php index 205e11c286d..c7783e8a4f5 100644 --- a/apps/files_trashbin/templates/part.list.php +++ b/apps/files_trashbin/templates/part.list.php @@ -1,15 +1,4 @@ - +