aboutsummaryrefslogtreecommitdiff
path: root/Neutron-trunk/resources/js/admin_v2.js
diff options
context:
space:
mode:
Diffstat (limited to 'Neutron-trunk/resources/js/admin_v2.js')
-rw-r--r--Neutron-trunk/resources/js/admin_v2.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/Neutron-trunk/resources/js/admin_v2.js b/Neutron-trunk/resources/js/admin_v2.js
deleted file mode 100644
index ab7249d..0000000
--- a/Neutron-trunk/resources/js/admin_v2.js
+++ /dev/null
@@ -1,14 +0,0 @@
-// noinspection JSUnresolvedFunction
-
-Array.from(document.getElementsByClassName("inner-item")).forEach((item) => {
- item.onclick = () => {
- if (item.getAttribute("data-item-href").startsWith("parent://")) {
- window.open("https://" + item.getAttribute("data-item-href").substr("parent://".length));
- } else if (item.getAttribute("data-item-href").startsWith("top://")) {
- window.parent.location.href = item.getAttribute("data-item-href").substr("top://".length);
- } else {
- $(document.body).fadeOut(75);
- location.href = item.getAttribute("data-item-href")
- }
- }
-}) \ No newline at end of file