summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-01-21 20:36:19 +0100
committerLukas Reschke <lukas@statuscode.ch>2013-01-21 20:36:19 +0100
commit9bc8df36490c76b66812ba30bd0bfea083353c59 (patch)
tree90beafb9f5abe08bf601042ed1a7b1fb9b27e06f /apps/files_sharing
parent0d02caa684a4ecad8d69e74007c3f9893303f428 (diff)
downloadnextcloud-server-9bc8df36490c76b66812ba30bd0bfea083353c59.tar.gz
nextcloud-server-9bc8df36490c76b66812ba30bd0bfea083353c59.zip
Move publicListView to external JS
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/templates/public.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index 647e1e08a31..275360ac2a8 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -1,11 +1,5 @@
-<script type="text/javascript">
- <?php if ( array_key_exists('publicListView', $_) && $_['publicListView'] == true ) {
- echo "var publicListView = true;";
- } else {
- echo "var publicListView = false;";
- }
- ?>
-</script>
+<script type="text/javascript" src="<?php echo OC_Helper::linkToRoute('publicListView');?>"></script>
+
<input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir">
<input type="hidden" name="downloadURL" value="<?php echo $_['downloadURL'] ?>" id="downloadURL">
<input type="hidden" name="filename" value="<?php echo $_['filename'] ?>" id="filename">