aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
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');
- }
- });
-
-});