summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-04-05 12:21:39 +0200
committerJulius Härtl <jus@bitgrid.net>2018-04-05 12:21:39 +0200
commitbbeb3402b6bc778de393b6da1b5fdc214f825b16 (patch)
treec6acabcd87666f34beb3eb59bcf93a09338170fa /apps/files_sharing
parentcc3b1179fc2ad0051cb6043ff022cd033144a936 (diff)
downloadnextcloud-server-bbeb3402b6bc778de393b6da1b5fdc214f825b16.tar.gz
nextcloud-server-bbeb3402b6bc778de393b6da1b5fdc214f825b16.zip
Move styling and menu handling to publicpage.js
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/css/public.scss14
-rw-r--r--apps/files_sharing/js/public.js18
-rw-r--r--apps/files_sharing/templates/public.php8
3 files changed, 2 insertions, 38 deletions
diff --git a/apps/files_sharing/css/public.scss b/apps/files_sharing/css/public.scss
index cc3788884e7..277814207b3 100644
--- a/apps/files_sharing/css/public.scss
+++ b/apps/files_sharing/css/public.scss
@@ -1,13 +1,3 @@
-#content {
- height: initial;
- min-height: calc(100vh - 160px);
-}
-
-/* force layout to make sure the content element's height matches its contents' height */
-.ie #content {
- display: inline-block;
-}
-
#preview {
background: #fff;
text-align: center;
@@ -105,10 +95,6 @@ thead {
border-color: rgba(0,0,0,0.3) !important;
}
-#share-menu input[type='text'] {
- width: 200px;
-}
-
#public-upload .avatardiv {
margin: 0 auto;
}
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index 4b3ede24389..1be51d4b688 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -423,20 +423,4 @@ $(document).ready(function () {
};
}
- $('#share-menutoggle').click(function() {
- $('#share-menu').toggleClass('open');
- });
-});
-
-
-$(document).mouseup(function(e) {
- var toggle = $('#share-menutoggle');
- var container = $('#share-menu');
-
- // if the target of the click isn't the menu toggle, nor a descendant of the
- // menu toggle, nor the container nor a descendant of the container
- if (!toggle.is(e.target) && toggle.has(e.target).length === 0 &&
- !container.is(e.target) && container.has(e.target).length === 0) {
- container.removeClass('open');
- }
-});
+}); \ No newline at end of file
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index e8eb28f25c6..476f0851547 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -30,7 +30,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
<?php endif; ?>
<input type="hidden" name="maxSizeAnimateGif" value="<?php p($_['maxSizeAnimateGif']); ?>" id="maxSizeAnimateGif">
<?php if (!isset($_['hideFileList']) || (isset($_['hideFileList']) && $_['hideFileList'] === false)) { ?>
- <div id="content">
+ <div id="files-public-content">
<div id="preview">
<?php if (isset($_['folder'])): ?>
<?php print_unescaped($_['folder']); ?>
@@ -84,9 +84,3 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
data-url="<?php p(\OC::$server->getURLGenerator()->linkTo('files', 'ajax/upload.php')); ?>" />
</div>
<?php endif; ?>
-
-<footer>
- <p class="info">
- <?php print_unescaped($theme->getLongFooter()); ?>
- </p>
-</footer>