aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
-rw-r--r--core/css/public.scss16
-rw-r--r--core/js/public/publicpage.js15
-rw-r--r--core/templates/layout.public.php4
-rw-r--r--tests/acceptance/features/bootstrap/FilesSharingAppContext.php2
7 files changed, 33 insertions, 44 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>
diff --git a/core/css/public.scss b/core/css/public.scss
index 6a175de6431..412016bc625 100644
--- a/core/css/public.scss
+++ b/core/css/public.scss
@@ -1,7 +1,7 @@
#body-public {
.header-right {
- span:not(.popovermenu) a {
+ #header-primary-action a {
color: $color-primary-text;
}
@@ -16,7 +16,21 @@
#header-secondary-action {
margin-right: 13px;
+
+ input[type='text'] {
+ width: 200px;
+ }
}
}
+
+ #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;
+ }
}
diff --git a/core/js/public/publicpage.js b/core/js/public/publicpage.js
index 31b862ba12a..1b37005540f 100644
--- a/core/js/public/publicpage.js
+++ b/core/js/public/publicpage.js
@@ -22,8 +22,19 @@
$(document).ready(function () {
- console.log('public');
- $('#body-public .header-right .menutoggle').click(function() {
+ $('#body-public').find('.header-right .menutoggle').click(function() {
$(this).next('.popovermenu').toggleClass('open');
});
});
+
+$(document).mouseup(function(e) {
+ var toggle = $('#body-public').find('.header-right .menutoggle');
+ var container = toggle.next('.popovermenu');
+
+ // 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');
+ }
+});
diff --git a/core/templates/layout.public.php b/core/templates/layout.public.php
index d3c12f8fd96..61b66144502 100644
--- a/core/templates/layout.public.php
+++ b/core/templates/layout.public.php
@@ -50,13 +50,13 @@
<div class="header-right">
<span id="header-primary-action" class="<?php if($template->getActionCount() === 1) { p($primary->getIcon()); } ?>">
<a href="<?php p($primary->getLink()); ?>">
- <span class="share-menutoggle-text"><?php p($primary->getLabel()) ?></span>
+ <span><?php p($primary->getLabel()) ?></span>
</a>
</span>
<?php if($template->getActionCount()>1) { ?>
<div id="header-secondary-action">
<span id="header-actions-toggle" class="menutoggle icon-more-white"></span>
- <div id="share-menu" class="popovermenu menu">
+ <div id="header-actions-menu" class="popovermenu menu">
<ul>
<?php
/** @var \OCP\AppFramework\Http\Template\IMenuAction $action */
diff --git a/tests/acceptance/features/bootstrap/FilesSharingAppContext.php b/tests/acceptance/features/bootstrap/FilesSharingAppContext.php
index 4f9dabc60e6..63bd7711856 100644
--- a/tests/acceptance/features/bootstrap/FilesSharingAppContext.php
+++ b/tests/acceptance/features/bootstrap/FilesSharingAppContext.php
@@ -64,7 +64,7 @@ class FilesSharingAppContext implements Context, ActorAwareInterface {
* @return Locator
*/
public static function shareMenu() {
- return Locator::forThe()->id("share-menu")->
+ return Locator::forThe()->id("header-actions-menu")->
describedAs("Share menu in Shared file page");
}