aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/js/redbasic.js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-01-20 20:07:37 +0000
committerMario <mario@mariovavti.com>2023-01-20 20:07:37 +0000
commit2d5e09f93022f8e31986e331f67901fe755ae6ec (patch)
treeb7a4b8bc4fb1f3de0c92702457837d80174cceaa /view/theme/redbasic/js/redbasic.js
parentfbda34935d7cdb1a8672738d613f053b9530ff28 (diff)
downloadvolse-hubzilla-2d5e09f93022f8e31986e331f67901fe755ae6ec.tar.gz
volse-hubzilla-2d5e09f93022f8e31986e331f67901fe755ae6ec.tar.bz2
volse-hubzilla-2d5e09f93022f8e31986e331f67901fe755ae6ec.zip
theme fixes
Diffstat (limited to 'view/theme/redbasic/js/redbasic.js')
-rw-r--r--view/theme/redbasic/js/redbasic.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index 7584f9421..27ad9e15f 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -54,6 +54,8 @@ $(document).ready(function() {
});
$('#theme-switch').click(function() {
+ // $('*').addClass('disable-transition');
+
if ($('html').attr('data-bs-theme') === 'dark') {
$('html').attr('data-bs-theme', 'light');
localStorage.setItem('redbasic_dark_mode', 1);
@@ -64,6 +66,8 @@ $(document).ready(function() {
localStorage.setItem('redbasic_dark_mode', 2);
$('#theme-switch-icon').removeClass('fa-moon-o').addClass('fa-sun-o');
}
+
+ // setTimeout(() => { $('*').removeClass('disable-transition') }, 100);
});