3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-05 10:45:24 +00:00

Moved clear button

This commit is contained in:
snipe
2025-12-05 21:35:47 +00:00
parent 82b37c3b58
commit 39d1aa932c
2 changed files with 9 additions and 6 deletions

View File

@ -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);

View File

@ -1902,12 +1902,6 @@
currentThemeSetting = newTheme;
});
/**
* 5. Add an event listener to toggle the reset
*/
clearButton.addEventListener("click", (event) => {
localStorage.removeItem("theme");
});