MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 430: Line 430:
         $('body').toggleClass('dark-mode');
         $('body').toggleClass('dark-mode');
         var notif = $('.dark-mode-notif[data-time="'+timestamp+'"]');
         var notif = $('.dark-mode-notif[data-time="'+timestamp+'"]');
         notif.remove();
         var otherNotif = $('.dark-mode-notif:not([data-time="'+timestamp+'"])');
        otherNotif.remove();
         matchHeaderText(true);
         matchHeaderText(true);
         if ($('body').hasClass('dark-mode')) {
         if ($('body').hasClass('dark-mode')) {