mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-21 00:42:38 +00:00
[Web] Update Bootstrap to 5.3.8, add theme support
This commit is contained in:
+3
-3
File diff suppressed because one or more lines are too long
@@ -124,6 +124,9 @@ $(document).ready(function() {
|
||||
var lastTab = localStorage.getItem(key);
|
||||
if (lastTab) {
|
||||
$('[data-bs-target="#' + lastTab + '"]').click();
|
||||
var dropdown = $('[data-bs-target="#' + lastTab + '"]').closest('.dropdown');
|
||||
dropdown.find('.dropdown-menu').removeClass('show');
|
||||
dropdown.find('.dropdown-toggle').attr('aria-expanded', 'false');
|
||||
var tab = $('[id^="' + lastTab + '"]');
|
||||
$(tab).find('.card-body.collapse:first').collapse('show');
|
||||
}
|
||||
@@ -347,7 +350,7 @@ $(document).ready(function() {
|
||||
if ($('#rspamd_logo_sm').length) $('#rspamd_logo_sm').attr('src', '/img/rspamd_logo_dark.png');
|
||||
localStorage.setItem('mailcow_theme', 'light');
|
||||
}else{
|
||||
$('head').append('<link id="dark-mode-theme" rel="stylesheet" type="text/css" href="/css/themes/mailcow-darkmode.css">');
|
||||
$('head').append('<link id="dark-mode-theme" rel="stylesheet" type="text/css" href="' + mailcow_dark_css + '">');
|
||||
$('#dark-mode-toggle').prop('checked', true);
|
||||
$('.main-logo').addClass('d-none');
|
||||
$('.main-logo-dark').removeClass('d-none');
|
||||
|
||||
Reference in New Issue
Block a user