diff options
author | Simon Rettberg | 2021-09-30 17:44:30 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-03-09 15:06:54 +0100 |
commit | d736e75ade7a4472aefb72af9036f86016adcb42 (patch) | |
tree | 39e38d5dd687bc6d25cb1de45ce4b78423aa7984 /modules-available/passthrough/templates | |
parent | [passthrough] New module for managing hardware passthrough for QEMU (diff) | |
download | slx-admin-d736e75ade7a4472aefb72af9036f86016adcb42.tar.gz slx-admin-d736e75ade7a4472aefb72af9036f86016adcb42.tar.xz slx-admin-d736e75ade7a4472aefb72af9036f86016adcb42.zip |
[statistics] Adapt hw-data parsing to new json format for display
Diffstat (limited to 'modules-available/passthrough/templates')
-rw-r--r-- | modules-available/passthrough/templates/hardware-list.html | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/modules-available/passthrough/templates/hardware-list.html b/modules-available/passthrough/templates/hardware-list.html index d331acb5..4bff0a39 100644 --- a/modules-available/passthrough/templates/hardware-list.html +++ b/modules-available/passthrough/templates/hardware-list.html @@ -18,7 +18,7 @@ </td> {{/class_name}} {{^class_name}} - <td>{{vendor}}:{{device}}</td> + <td>{{vendor}}:{{device}} [{{rev}}]</td> <td> <table class="slx-ellipsis"> <tr> @@ -101,25 +101,5 @@ $(this).append($('<option>').attr('value', gid).text(gid + ' (' + title + ')')); }); }); - var missing = {{{missing_ids}}}; - var doQuery = function() { - if (missing && missing.length > 0) { - $.ajax({ - url: '?do=statistics', dataType: "json", method: "POST", data: { - token: TOKEN, - action: 'json-lookup', - list: missing.splice(0, 10) // Query 10 at a time max - } - }).done(function (data) { - if (!data) - return; - for (var k in data) { - $('.query-' + k.replace(':', '-')).text(data[k]); - } - doQuery(); - }); - } - } - doQuery(); }); </script>
\ No newline at end of file |