summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2022-05-11 15:17:02 +0200
committerSimon Rettberg2022-05-11 15:17:02 +0200
commit874b71c5b41cf5a19e63c4d61e44d9d06e8f4206 (patch)
treeba289f4cca693e2b10ff42bfded1fedd493947db
parent[vmstore] Add types where possible and do false -> null (diff)
downloadslx-admin-874b71c5b41cf5a19e63c4d61e44d9d06e8f4206.tar.gz
slx-admin-874b71c5b41cf5a19e63c4d61e44d9d06e8f4206.tar.xz
slx-admin-874b71c5b41cf5a19e63c4d61e44d9d06e8f4206.zip
[statistics] Use proper filter op for ID44 and RAM on chart page
-rw-r--r--modules-available/statistics/templates/filterbox.html4
-rw-r--r--modules-available/statistics/templates/id44.html2
-rw-r--r--modules-available/statistics/templates/memory.html2
3 files changed, 5 insertions, 3 deletions
diff --git a/modules-available/statistics/templates/filterbox.html b/modules-available/statistics/templates/filterbox.html
index e7c1cd9b..72754b21 100644
--- a/modules-available/statistics/templates/filterbox.html
+++ b/modules-available/statistics/templates/filterbox.html
@@ -106,10 +106,12 @@ document.addEventListener("DOMContentLoaded", function () {
e.find('.filter-val').each(function(idx, elem) {
var e = $(elem);
var val = e.data('filter-val');
+ var op = e.data('filter-op');
+ if (!op) op = '=';
if (val === null || val === undefined) return;
e.click(function(ev) {
ev.preventDefault();
- addFilter(col, '=', val);
+ addFilter(col, op, val);
refresh();
});
});
diff --git a/modules-available/statistics/templates/id44.html b/modules-available/statistics/templates/id44.html
index ec0dac09..bc549fa8 100644
--- a/modules-available/statistics/templates/id44.html
+++ b/modules-available/statistics/templates/id44.html
@@ -17,7 +17,7 @@
{{#rows}}
<tr id="tmpid{{gb}}" class="{{class}} {{collapse}}">
<td data-sort-value="{{gb}}" class="text-left text-nowrap">
- <a class="filter-val" data-filter-val="{{gb}}" href="#">{{gb}}&thinsp;GiB</a>
+ <a class="filter-val" data-filter-val="{{gb}}" data-filter-op="~" href="#">{{gb}}&thinsp;GiB</a>
</td>
<td class="text-right">{{count}}</td>
</tr>
diff --git a/modules-available/statistics/templates/memory.html b/modules-available/statistics/templates/memory.html
index f6f4c446..185c1a34 100644
--- a/modules-available/statistics/templates/memory.html
+++ b/modules-available/statistics/templates/memory.html
@@ -17,7 +17,7 @@
{{#rows}}
<tr id="ramid{{gb}}" class="{{class}} {{collapse}}">
<td class="text-left text-nowrap" data-sort-value="{{gb}}">
- <a class="filter-val" data-filter-val="{{gb}}" href="#">{{gb}}&thinsp;GiB</a>
+ <a class="filter-val" data-filter-val="{{gb}}" data-filter-op="~" href="#">{{gb}}&thinsp;GiB</a>
</td>
<td class="text-right">{{count}}</td>
</tr>