diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-11-18 12:27:55 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-11-18 12:28:04 +0100 |
commit | 2af7ac78d21306e10894fe97acdd79a1356e7af5 (patch) | |
tree | 3e48c05d888e9b50db3f9f1dfad5f6ff72d2b809 /apps | |
parent | e28d71bf5511a8e6b687814a54e5448d2827cbbb (diff) | |
download | nextcloud-server-2af7ac78d21306e10894fe97acdd79a1356e7af5.tar.gz nextcloud-server-2af7ac78d21306e10894fe97acdd79a1356e7af5.zip |
refs #505 - defining publicListView based on template parameter
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/templates/public.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 35cca7c42dc..647e1e08a31 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -1,3 +1,11 @@ +<script type="text/javascript"> + <?php if ( array_key_exists('publicListView', $_) && $_['publicListView'] == true ) { + echo "var publicListView = true;"; + } else { + echo "var publicListView = false;"; + } + ?> +</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"> |