Skip to content

Commit 6ae0abf

Browse files
Update builds.js filtering and Service Pack logic
Refines the rendering logic for filter and export types in the builds table, distinguishing between 'X' and '.' for filters. Adjusts Service Pack marking to exclude 'RC' and changes KB list formatting to use an empty string instead of '.'.
1 parent 074faad commit 6ae0abf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

static/js/builds.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,12 @@
4242
className: 'text-center',
4343
render: function(data, type, row, meta) {
4444
// For filtering, sorting, and exports, return plain text
45-
if (type === 'filter' || type === 'sort' || type === 'export') {
45+
if (type === 'export') {
4646
return data == 'X' ? 'Yes' : '';
4747
}
48+
if (type === 'filter') {
49+
return data == 'X' ? 'X' : '.';
50+
}
4851
// For display, return the checkmark
4952
return data == 'X' ? '✓' : '';
5053
}
@@ -152,7 +155,7 @@
152155
}
153156

154157
// Mark Service Packs
155-
if (el.SP) {
158+
if (el.SP && el.SP !== 'RC') {
156159
is_SP = 'X';
157160
var compareSP = el.SP;
158161
if (compareSP != prevSP) {
@@ -179,7 +182,7 @@
179182
}
180183

181184
// Format KB List with links
182-
var nKBList = '.';
185+
var nKBList = '';
183186
if (el.KBList) {
184187
if (_.isArray(el.KBList)) {
185188
var KBArr = [];

0 commit comments

Comments
 (0)