parent
78c1024a29
commit
7b87bd9f23
|
|
@ -2441,18 +2441,9 @@
|
||||||
setupListScrolling();
|
setupListScrolling();
|
||||||
|
|
||||||
//Toggle board theme
|
//Toggle board theme
|
||||||
var mode = 'light';
|
|
||||||
|
|
||||||
$('.theme-swap').click(function() {
|
$('.theme-swap').click(function() {
|
||||||
|
$('body').toggleClass('dark');
|
||||||
if ( mode === 'light') {
|
return false;
|
||||||
$('body').addClass('dark');
|
|
||||||
mode = 'dark';
|
|
||||||
|
|
||||||
} else if (mode === 'dark') {
|
|
||||||
$('body').removeClass('dark');
|
|
||||||
mode = 'light';
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue