Adjust text discovery after layout change
authorJoey Schulze <joey@infodrom.org>
Fri, 6 Mar 2020 14:38:25 +0000 (15:38 +0100)
committerJoey Schulze <joey@infodrom.org>
Fri, 6 Mar 2020 14:38:25 +0000 (15:38 +0100)
src/InfoCon/stempel/status.wml

index 6adea17..72fc3da 100644 (file)
@@ -301,7 +301,7 @@ function filter_change(e)
     var cnum = 0;
     $('table#table_'+form+' tbody tr').not('.deleted').each(function(i,e){
        if (filter.length) {
-           var td = $(this).find('td:nth-child(4)');
+           var td = $(this).find('td:nth-child(5)');
            if (td.text().toLowerCase().indexOf(filter) > -1) {
                $(this).removeClass('t0').removeClass('t1').addClass('t'+cnum).show();
                cnum = cnum ? 0 : 1;