mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-13 17:49:25 +00:00
Added debug message #3
This commit is contained in:
parent
ab298decf0
commit
7eef551c48
|
@ -205,9 +205,14 @@ window.WMTypeAhead = function(appendTo, searchInput) { // eslint-disable-line no
|
||||||
script = document.createElement('script');
|
script = document.createElement('script');
|
||||||
script.id = 'api_opensearch';
|
script.id = 'api_opensearch';
|
||||||
|
|
||||||
|
console.log("Created API script");
|
||||||
|
|
||||||
// Removed description prop
|
// Removed description prop
|
||||||
// TODO: Use text extract or PCS for description
|
// TODO: Use text extract or PCS for description
|
||||||
|
|
||||||
callbackIndex = window.callbackStack.addCallback(window.portalOpensearchCallback);
|
callbackIndex = window.callbackStack.addCallback(window.portalOpensearchCallback);
|
||||||
|
console.log("Called callback index");
|
||||||
|
|
||||||
searchQuery = {
|
searchQuery = {
|
||||||
action: 'query',
|
action: 'query',
|
||||||
format: 'json',
|
format: 'json',
|
||||||
|
@ -226,6 +231,8 @@ window.WMTypeAhead = function(appendTo, searchInput) { // eslint-disable-line no
|
||||||
|
|
||||||
script.src = hostname + serialize(searchQuery);
|
script.src = hostname + serialize(searchQuery);
|
||||||
docHead.appendChild(script);
|
docHead.appendChild(script);
|
||||||
|
|
||||||
|
console.log("Query script loaded");
|
||||||
}
|
}
|
||||||
|
|
||||||
// END loadQueryScript
|
// END loadQueryScript
|
||||||
|
|
Loading…
Reference in a new issue