From b7c14ed041e645d847e0021c08f56b673211482d Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Sat, 25 Mar 2023 12:10:03 +0300 Subject: [PATCH] final part of merging #8749 --- javascript/extraNetworks.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/javascript/extraNetworks.js b/javascript/extraNetworks.js index 742a3c2d..25322138 100644 --- a/javascript/extraNetworks.js +++ b/javascript/extraNetworks.js @@ -132,14 +132,12 @@ function popup(contents){ globalPopup.style.display = "flex"; } -function extraNetworksShowMetadata(event, text){ +function extraNetworksShowMetadata(text){ elem = document.createElement('pre') elem.classList.add('popup-metadata'); elem.textContent = text; popup(elem); - - event.stopPropagation() } function requestGet(url, data, handler, errorHandler){ @@ -166,7 +164,7 @@ function requestGet(url, data, handler, errorHandler){ xhr.send(js); } -function extraNetworksRequestMetadata(extraPage, cardName){ +function extraNetworksRequestMetadata(event, extraPage, cardName){ showError = function(){ extraNetworksShowMetadata("there was an error getting metadata"); } requestGet("./sd_extra_networks/metadata", {"page": extraPage, "item": cardName}, function(data){ @@ -176,4 +174,6 @@ function extraNetworksRequestMetadata(extraPage, cardName){ showError() } }, showError) + + event.stopPropagation() }