aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-08-28 13:12:20 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-09-03 16:07:49 +0200
commit7b6c78c81d4bd5e280f370b95ca2746cd8693882 (patch)
treeebea977fc109b92ab17003e1fc3058179a1074b6 /core
parent04b25ba59d48ea3ab1d34d9f05ede33fc7ad7fbc (diff)
downloadnextcloud-server-7b6c78c81d4bd5e280f370b95ca2746cd8693882.tar.gz
nextcloud-server-7b6c78c81d4bd5e280f370b95ca2746cd8693882.zip
chore: Remove legacy JS code for public page menu (header actions)
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'core')
-rw-r--r--core/js/core.json1
-rw-r--r--core/js/public/publicpage.js29
2 files changed, 0 insertions, 30 deletions
diff --git a/core/js/core.json b/core/js/core.json
index 40bb35dde9f..457656fdd08 100644
--- a/core/js/core.json
+++ b/core/js/core.json
@@ -3,7 +3,6 @@
"core-common.js"
],
"modules": [
- "../core/js/public/publicpage.js",
"../core/js/setupchecks.js",
"../core/js/mimetype.js",
"../core/js/mimetypelist.js"
diff --git a/core/js/public/publicpage.js b/core/js/public/publicpage.js
deleted file mode 100644
index b17eac181b1..00000000000
--- a/core/js/public/publicpage.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
- * SPDX-License-Identifier: AGPL-3.0-or-later
- */
-
-window.addEventListener('DOMContentLoaded', function () {
-
- $('#body-public').find('.header-end .menutoggle').click(function() {
- $(this).next('.popovermenu').toggleClass('open');
- });
-
- $('#save-external-share').click(function () {
- $('#external-share-menu-item').toggleClass('hidden')
- $('#remote_address').focus();
- });
-
- $(document).mouseup(function(e) {
- var toggle = $('#body-public').find('.header-end .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');
- }
- });
-
-});