Skip to content

Commit 8d05684

Browse files
committed
Add a negative filter
1 parent cd64ed0 commit 8d05684

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

templates/triage/pulls.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,23 @@
5757
var td;
5858
switch (flt[0]) {
5959
case 'label':
60+
case '-label':
6061
td = tr[i].getElementsByTagName("td")[6];
6162
break;
6263
case 'assignee':
64+
case '-assignee':
6365
td = tr[i].getElementsByTagName("td")[5];
6466
break;
6567
case 'author':
68+
case '-author':
6669
td = tr[i].getElementsByTagName("td")[4];
6770
break;
6871
}
6972
if (td) {
7073
txtValue = td.textContent || td.innerText;
71-
if (txtValue.indexOf(flt[1]) > -1) {
74+
console.log(flt[0].charAt(0));
75+
if ((flt[0].charAt(0) != '-' && txtValue.indexOf(flt[1]) > -1)
76+
|| (flt[0].charAt(0) == '-' && txtValue.indexOf(flt[1]) <= -1)) {
7277
tr[i].style.display = "";
7378
} else {
7479
tr[i].style.display = "none";

0 commit comments

Comments
 (0)