MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
(imported js from http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Transwiki/MediaWiki:Common.js) |
mNo edit summary |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
/* Autocompletion for the <inputbox /> extension */ | |||
document.getElementById('searchform').action = '/index.php'; | |||
var searchInputs = document.getElementsByClassName('mw-ui-input'); | |||
for (var i = 0; i < searchInputs.length; ++i) { searchInputs[i].id = 'searchInput'; } | |||
} |
Latest revision as of 11:32, 12 March 2017
/* Any JavaScript here will be loaded for all users on every page load. */ /* Autocompletion for the <inputbox /> extension */ document.getElementById('searchform').action = '/index.php'; var searchInputs = document.getElementsByClassName('mw-ui-input'); for (var i = 0; i < searchInputs.length; ++i) { searchInputs[i].id = 'searchInput'; }