MediaWiki:Common.js/search.js: Difference between revisions

m
http->https
(replacing deprecated global with mw.config variable)
m (http->https)
 
Line 36: Line 36:
     }
     }
     selectBox.appendChild(createOption('MediaWiki Search', mw.config.get('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', 'https://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!', 'https://search.yahoo.com/search', 'p', 'vs', 'wiki.oni2.net'));
     selectBox.appendChild(createOption('Bing', 'http://www.bing.com/search', 'q', 'q1', 'site:http://wiki.oni2.net'));
     selectBox.appendChild(createOption('Bing', 'https://www.bing.com/search', 'q', 'q1', 'site:https://wiki.oni2.net'));
     searchBox.style.marginLeft = '0px';
     searchBox.style.marginLeft = '0px';
     if (document.getElementById('loadStatus')) {
     if (document.getElementById('loadStatus')) {