From 08e925758e920b898ac2d08710eab2f9638fe276 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 25 Jan 2023 13:08:05 +0000 Subject: update fullcalendar library --- view/theme/redbasic/js/redbasic.js | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'view/theme/redbasic') diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index b32042668..f502b2538 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -4,20 +4,19 @@ let redbasic_dark_mode = localStorage.getItem('redbasic_dark_mode'); -$(document).ready(function() { - - if (redbasic_dark_mode == 1) { - $('html').attr('data-bs-theme', 'light'); - $('meta[name=theme-color]').attr('content', $('nav').css('background-color')); - $('#theme-switch-icon').removeClass('fa-sun-o').addClass('fa-moon-o'); - } +if (redbasic_dark_mode == 1) { + $('html').attr('data-bs-theme', 'light'); + $('meta[name=theme-color]').attr('content', $('nav').css('background-color')); + $('#theme-switch-icon').removeClass('fa-sun-o').addClass('fa-moon-o'); +} +if (redbasic_dark_mode == 2) { + $('html').attr('data-bs-theme', 'dark'); + $('meta[name=theme-color]').attr('content', $('nav').css('background-color')); + $('#theme-switch-icon').removeClass('fa-moon-o').addClass('fa-sun-o'); +} - if (redbasic_dark_mode == 2) { - $('html').attr('data-bs-theme', 'dark'); - $('meta[name=theme-color]').attr('content', $('nav').css('background-color')); - $('#theme-switch-icon').removeClass('fa-moon-o').addClass('fa-sun-o'); - } +$(document).ready(function() { // CSS3 calc() fallback (for unsupported browsers) $('body').append(''); -- cgit v1.2.3