summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/templates/part.list.php
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-01-22 17:59:33 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-01-22 17:59:33 +0100
commitf919230f63aade2df7b12a9c9ab28c7cd59868d4 (patch)
treeda0740dac6645be54a8a4a8294418514b8f8b6d3 /apps/files_trashbin/templates/part.list.php
parent039bc9159793a0275e5f409f3040043190d59ec9 (diff)
downloadnextcloud-server-f919230f63aade2df7b12a9c9ab28c7cd59868d4.tar.gz
nextcloud-server-f919230f63aade2df7b12a9c9ab28c7cd59868d4.zip
remove inline JavaScript
Diffstat (limited to 'apps/files_trashbin/templates/part.list.php')
-rw-r--r--apps/files_trashbin/templates/part.list.php13
1 files changed, 1 insertions, 12 deletions
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 @@
-<script type="text/javascript">
-<?php if ( array_key_exists('disableSharing', $_) && $_['disableSharing'] == true ) :?>
- var disableSharing = true;
-<?php else: ?>
- var disableSharing = false;
-<?php endif; ?>
-<?php if ( array_key_exists('disableDownloadActions', $_) && $_['disableDownloadActions'] == true ) :?>
- var disableDownloadActions = true;
-<?php else: ?>
- var disableDownloadActions = false;
-<?php endif; ?>
-</script>
+<script type="text/javascript" src="<?php echo OC_Helper::linkTo('files_trashbin/js', 'part.list.php');?>"></script>
<?php foreach($_['files'] as $file):
$simple_file_size = OCP\simple_file_size($file['size']);