Skip to content

A free open source IT asset/license management system

Moved clear button

snipe39d1aa932c22
diff --git a/resources/views/account/profile.blade.php b/resources/views/account/profile.blade.php
index 8194ecf9c8..ac1606068b 100755
--- a/resources/views/account/profile.blade.php
+++ b/resources/views/account/profile.blade.php
@@ -257,6 +257,15 @@
// This takes the color from the color picker to show a live preview
$(function() {
+ /**
+ * 5. Add an event listener to toggle the reset
+ */
+ clearButton.addEventListener("click", (event) => {
+ localStorage.removeItem("theme");
+ });
+
+
+
$('#nav-link-color').colorpicker().on('changeColor', function(e) {
var color = e.color.toString('rgba');
// $('.navbar-nav > li > a').css('background-color', header_color);
diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.php
index ae0293c3a1..c74daa023a 100644
--- a/resources/views/layouts/default.blade.php
+++ b/resources/views/layouts/default.blade.php
@@ -1902,12 +1902,6 @@
currentThemeSetting = newTheme;
});
- /**
- * 5. Add an event listener to toggle the reset
- */
- clearButton.addEventListener("click", (event) => {
- localStorage.removeItem("theme");
- });