diff --git a/system/admin/views/add-content.html.php b/system/admin/views/add-content.html.php index 22d8633..d99289c 100644 --- a/system/admin/views/add-content.html.php +++ b/system/admin/views/add-content.html.php @@ -226,6 +226,7 @@ $( function() {
+
@@ -416,17 +417,6 @@ $('.img-container').on("click", ".the-img", function(e) { document.getElementById("preview-col").style.display = ''; localStorage.setItem("preview-state", 'open'); } - }) - if (localStorage.getItem("custom-fields-state") === "open") { - document.getElementById("custom-fields").setAttribute("open", ""); - } - - document.getElementById("custom-fields-click").addEventListener("click", () => { - if (document.getElementById("custom-fields").open) { - localStorage.setItem("custom-fields-state", 'close'); - } else { - localStorage.setItem("custom-fields-state", 'open'); - } - }) + }) diff --git a/system/admin/views/add-page.html.php b/system/admin/views/add-page.html.php index 0daa99a..9c3ea5d 100644 --- a/system/admin/views/add-page.html.php +++ b/system/admin/views/add-page.html.php @@ -94,6 +94,7 @@ if ($type == 'is_page') {
+ @@ -248,16 +249,5 @@ $('.img-container').on("click", ".the-img", function(e) { document.getElementById("preview-col").style.display = ''; localStorage.setItem("preview-state", 'open'); } - }) - if (localStorage.getItem("custom-fields-state") === "open") { - document.getElementById("custom-fields").setAttribute("open", ""); - } - - document.getElementById("custom-fields-click").addEventListener("click", () => { - if (document.getElementById("custom-fields").open) { - localStorage.setItem("custom-fields-state", 'close'); - } else { - localStorage.setItem("custom-fields-state", 'open'); - } }) \ No newline at end of file diff --git a/system/admin/views/edit-content.html.php b/system/admin/views/edit-content.html.php index 79fde08..357de38 100644 --- a/system/admin/views/edit-content.html.php +++ b/system/admin/views/edit-content.html.php @@ -275,6 +275,7 @@ $( function() {
+ @@ -471,16 +472,5 @@ $('.img-container').on("click", ".the-img", function(e) { document.getElementById("preview-col").style.display = ''; localStorage.setItem("preview-state", 'open'); } - }) - if (localStorage.getItem("custom-fields-state") === "open") { - document.getElementById("custom-fields").setAttribute("open", ""); - } - - document.getElementById("custom-fields-click").addEventListener("click", () => { - if (document.getElementById("custom-fields").open) { - localStorage.setItem("custom-fields-state", 'close'); - } else { - localStorage.setItem("custom-fields-state", 'open'); - } - }) + }) diff --git a/system/admin/views/edit-page.html.php b/system/admin/views/edit-page.html.php index 5523634..34f5709 100644 --- a/system/admin/views/edit-page.html.php +++ b/system/admin/views/edit-page.html.php @@ -206,6 +206,7 @@ if ($type == 'is_page' || $type == 'is_frontpage') {
+ @@ -416,16 +417,5 @@ $('.img-container').on("click", ".the-img", function(e) { document.getElementById("preview-col").style.display = ''; localStorage.setItem("preview-state", 'open'); } - }) - if (localStorage.getItem("custom-fields-state") === "open") { - document.getElementById("custom-fields").setAttribute("open", ""); - } - - document.getElementById("custom-fields-click").addEventListener("click", () => { - if (document.getElementById("custom-fields").open) { - localStorage.setItem("custom-fields-state", 'close'); - } else { - localStorage.setItem("custom-fields-state", 'open'); - } - }) + })