19,800
edits
(replacing deprecated addOnloadHook()) |
(replacing deprecated global with mw.config variable) |
||
| Line 35: | Line 35: | ||
searchForm.title.name = optSelected[2]; | searchForm.title.name = optSelected[2]; | ||
} | } | ||
selectBox.appendChild(createOption('MediaWiki Search', wgScriptPath + '/index.php', 'search', 'title', 'Special:Search')); | selectBox.appendChild(createOption('MediaWiki Search', mw.config.get('wgScriptPath') + '/index.php', 'search', 'title', 'Special:Search')); | ||
selectBox.appendChild(createOption('Google', 'http://www.google.com/search', 'q', 'sitesearch', 'wiki.oni2.net')); | selectBox.appendChild(createOption('Google', 'http://www.google.com/search', 'q', 'sitesearch', 'wiki.oni2.net')); | ||
selectBox.appendChild(createOption('Yahoo!', 'http://search.yahoo.com/search', 'p', 'vs', 'wiki.oni2.net')); | selectBox.appendChild(createOption('Yahoo!', 'http://search.yahoo.com/search', 'p', 'vs', 'wiki.oni2.net')); | ||