Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Citizen.js: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 10: Line 10:
         var content = section.nextElementSibling;
         var content = section.nextElementSibling;
         if (section && content) {
         if (section && content) {
           section.classList.add('citizen-section-collapsed'); // tell Citizen it's collapsed
           section.classList.add('citizen-section-collapsed'); // Mark section as collapsed
           content.style.display = "none"; // also hide the content to match
           content.style.display = "none"; // Hide the content manually
         }
         }
       }
       }
     });
     });
    // ✨ Now reinitialize collapsibles
    if (typeof window.citizen !== "undefined" && typeof window.citizen.initCollapsibles === "function") {
      window.citizen.initCollapsibles();
    }
   }
   }
});
});