MediaWiki:Minerva.js: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
 
Line 1: Line 1:
/* Any JavaScript here will be loaded for users of the Minerva skin */
/* Any JavaScript here will be loaded for users of the Minerva skin */
/* Collapse the navbox section by default */
$(function() {
if ($(window).width() >= 720 && $('.navbox-section:visible').length)
$('.navbox-heading').click();
});


/* Clean-up Unicode search bar */
/* Clean-up Unicode search bar */
Line 12: Line 6:
$('.overlay .search').val($('.overlay .search').val().replace(/[‘’]/g, "'").replace(/[“”]/g, '"'));
$('.overlay .search').val($('.overlay .search').val().replace(/[‘’]/g, "'").replace(/[“”]/g, '"'));
});
});
});
/* Collapse navbox section by default */
$(function() {
setTimeout(function() {
if ($(window).width() >= 720 && $('.navbox-heading.open-block').length)
$('.navbox-heading').click();
}, 100);
});
});