From a6987e5e406088bc09d35858d586b2f7ec1671c8 Mon Sep 17 00:00:00 2001 From: emile Date: Tue, 9 Jul 2024 13:46:22 +0300 Subject: [PATCH] new --- .../osinacore/templates/add-edit-main.html | 3 --- osinaweb/osinacore/templates/main.html | 3 --- .../templates/recent-activities-page.html | 3 --- osinaweb/static/js/api_calls/switch-status.js | 19 ------------------- 4 files changed, 28 deletions(-) delete mode 100644 osinaweb/static/js/api_calls/switch-status.js diff --git a/osinaweb/osinacore/templates/add-edit-main.html b/osinaweb/osinacore/templates/add-edit-main.html index 77b5bb4d..1d91cddb 100644 --- a/osinaweb/osinacore/templates/add-edit-main.html +++ b/osinaweb/osinacore/templates/add-edit-main.html @@ -950,9 +950,6 @@ - - - diff --git a/osinaweb/osinacore/templates/main.html b/osinaweb/osinacore/templates/main.html index 05e6329a..88ed6b3e 100644 --- a/osinaweb/osinacore/templates/main.html +++ b/osinaweb/osinacore/templates/main.html @@ -1232,9 +1232,6 @@ - - - diff --git a/osinaweb/osinacore/templates/recent-activities-page.html b/osinaweb/osinacore/templates/recent-activities-page.html index c476930e..363fac26 100644 --- a/osinaweb/osinacore/templates/recent-activities-page.html +++ b/osinaweb/osinacore/templates/recent-activities-page.html @@ -736,9 +736,6 @@ - - - diff --git a/osinaweb/static/js/api_calls/switch-status.js b/osinaweb/static/js/api_calls/switch-status.js deleted file mode 100644 index 891480bb..00000000 --- a/osinaweb/static/js/api_calls/switch-status.js +++ /dev/null @@ -1,19 +0,0 @@ -// TO SWITCH BETWEEN STATUSES FROM ONLINE TO OFFLINE - -document.addEventListener('DOMContentLoaded', function () { - document.getElementById('goOnlineButton').addEventListener('click', function () { - var xhr = new XMLHttpRequest(); - // Access the URL from the data attribute - var url = this.getAttribute('data-url'); - xhr.open('GET', url, true); - xhr.onload = function () { - if (xhr.status === 200) { - // If the request is successful, reload the top window - window.top.location.reload(); - } else { - console.log("You are still offline.") - } - }; - xhr.send(); - }); -});