diff --git a/static/js/diag.js b/static/js/diag.js index 145343c..2bc9777 100644 --- a/static/js/diag.js +++ b/static/js/diag.js @@ -679,7 +679,22 @@ SerialNumber.addEventListener("submit", (e) => { console.error(error); $('#searchText').text(error.message) $('.form-btn').css('background-color', 'orangered') - }); + }); + + fetchData(keyboardLayoutSwitch(serial.value), 'searchpriom').then(data => { + console.log(data); // The response body + for (var key in data) { + if (data.hasOwnProperty(key)) { + console.dir(data[key]); + $('.repeatedx').append(buildHtmlTable([data[key]])) + } + } + }) + .catch(error => { + console.error(error); + $('#searchText').text(error.message) + $('.form-btn').css('background-color', 'orangered') + }); }