MediaWiki:Minerva.js: Difference between revisions
From Halopedia, the Halo wiki
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
if ($(window).width() >= 720 && $('.navbox-section:visible').length) | if ($(window).width() >= 720 && $('.navbox-section:visible').length) | ||
$('.navbox-heading').click(); | $('.navbox-heading').click(); | ||
}); | |||
/* Clean-up Unicode search bar */ | |||
$(function() { | |||
$('body').on('submit', '.overlay .search-box', function() { | |||
$('.overlay .search').val($('.overlay .search').val().replace(/[‘’]/g, "'").replace(/[“”]/g, '"')); | |||
}); | |||
}); | }); | ||