MediaWiki:Mobile.js: Difference between revisions

From Linguifex
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* esversion: 6*/
if (mw.config.get('skin') === 'minerva') {
if (mw.config.get('skin') === 'minerva') {
     document.querySelectorAll('.inflection-table-collapsed').forEach(el => {
     var elements = document.querySelectorAll('.inflection-table-collapsed');
    Array.prototype.forEach.call(elements, function(el) {
         el.classList.remove('inflection-table-collapsed');
         el.classList.remove('inflection-table-collapsed');
     });
     });
}
}

Revision as of 13:41, 12 July 2025

if (mw.config.get('skin') === 'minerva') {
    var elements = document.querySelectorAll('.inflection-table-collapsed');
    Array.prototype.forEach.call(elements, function(el) {
        el.classList.remove('inflection-table-collapsed');
    });
}