final part of merging #8749
This commit is contained in:
parent
e442b73633
commit
b7c14ed041
1 changed files with 4 additions and 4 deletions
|
@ -132,14 +132,12 @@ function popup(contents){
|
||||||
globalPopup.style.display = "flex";
|
globalPopup.style.display = "flex";
|
||||||
}
|
}
|
||||||
|
|
||||||
function extraNetworksShowMetadata(event, text){
|
function extraNetworksShowMetadata(text){
|
||||||
elem = document.createElement('pre')
|
elem = document.createElement('pre')
|
||||||
elem.classList.add('popup-metadata');
|
elem.classList.add('popup-metadata');
|
||||||
elem.textContent = text;
|
elem.textContent = text;
|
||||||
|
|
||||||
popup(elem);
|
popup(elem);
|
||||||
|
|
||||||
event.stopPropagation()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function requestGet(url, data, handler, errorHandler){
|
function requestGet(url, data, handler, errorHandler){
|
||||||
|
@ -166,7 +164,7 @@ function requestGet(url, data, handler, errorHandler){
|
||||||
xhr.send(js);
|
xhr.send(js);
|
||||||
}
|
}
|
||||||
|
|
||||||
function extraNetworksRequestMetadata(extraPage, cardName){
|
function extraNetworksRequestMetadata(event, extraPage, cardName){
|
||||||
showError = function(){ extraNetworksShowMetadata("there was an error getting metadata"); }
|
showError = function(){ extraNetworksShowMetadata("there was an error getting metadata"); }
|
||||||
|
|
||||||
requestGet("./sd_extra_networks/metadata", {"page": extraPage, "item": cardName}, function(data){
|
requestGet("./sd_extra_networks/metadata", {"page": extraPage, "item": cardName}, function(data){
|
||||||
|
@ -176,4 +174,6 @@ function extraNetworksRequestMetadata(extraPage, cardName){
|
||||||
showError()
|
showError()
|
||||||
}
|
}
|
||||||
}, showError)
|
}, showError)
|
||||||
|
|
||||||
|
event.stopPropagation()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue