17,230
edits
(addOnloadHook -> jQuery) |
m (update deprecated wg variables to mw.config) |
||
Line 1: | Line 1: | ||
if (wgPageName == "Main_Page") { | if (mw.config.get('wgPageName') == "Main_Page") { | ||
jQuery(function() { | jQuery(function() { | ||
document.getElementById("searchInput").focus(); | document.getElementById("searchInput").focus(); | ||
}); | }); | ||
} | } |