Autres langues
Autres actions
Aucun résumé des modifications |
(MAJ) |
||
Ligne 2 : | Ligne 2 : | ||
"use strict"; | "use strict"; | ||
/ | //New homepage search bar | ||
mw.loader.using( [ 'mediawiki.util' ] ).done( function() { | |||
console.log("loaded utils"); | |||
/* Trigger search box when click on the fake search button on main page */ | |||
//if ( mw.config.get( 'wgIsMainPage' ) === true ) { | |||
document.getElementById( 'homepage-search' ).addEventListener( 'click', function() { | |||
var search = document.getElementById( 'citizen-search-details' ); | |||
search.open = true; | |||
} ); | |||
//} | |||
} ); | |||
} | |||
/ | |||
} | |||
Dernière version du 30 janvier 2025 à 21:48
/* All JavaScript here will be loaded for users of the Citizen skin */
"use strict";
//New homepage search bar
mw.loader.using( [ 'mediawiki.util' ] ).done( function() {
console.log("loaded utils");
/* Trigger search box when click on the fake search button on main page */
//if ( mw.config.get( 'wgIsMainPage' ) === true ) {
document.getElementById( 'homepage-search' ).addEventListener( 'click', function() {
var search = document.getElementById( 'citizen-search-details' );
search.open = true;
} );
//}
} );