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:
@ -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);
|
||||
|
||||
@ -1902,12 +1902,6 @@
|
||||
currentThemeSetting = newTheme;
|
||||
});
|
||||
|
||||
/**
|
||||
* 5. Add an event listener to toggle the reset
|
||||
*/
|
||||
clearButton.addEventListener("click", (event) => {
|
||||
localStorage.removeItem("theme");
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user