MediaWiki:Common.js: Difference between revisions
MediaWiki interface page
More actions
>MangoFVTT No edit summary |
>MangoFVTT No edit summary |
||
| Line 13: | Line 13: | ||
function onSearchTriggerClick() { | function onSearchTriggerClick() { | ||
if (skin === "citizen") { | if (skin === "citizen" && searchToggle) { | ||
// Citizen does not have a visible search bar, you need to expand the search card first | // Citizen does not have a visible search bar, you need to expand the search card first | ||
// And Citizen will focus the input automatically | // And Citizen will focus the input automatically | ||
searchToggle | searchToggle.click(); | ||
} else { | } else { | ||
// This should work for all skins that has visible search bar | // This should work for all skins that has visible search bar | ||