Skip to content

Commit

Permalink
Merge pull request #2077 from CityOfPhiladelphia/test-hide-empty-tables
Browse files Browse the repository at this point in the history
trim whitespace fom table columns
  • Loading branch information
m-atia committed Jan 22, 2024
2 parents 8d0cd6b + b8f7756 commit ffd1b05
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $('table.js-hide-empty').each(function(i, obj) {
var tds = $(this).parents('table').find('tr td:nth-child(' + (i + 1) + ')');

tds.each(function(j) {
if (this.innerHTML == '') remove++;
if (this.innerHTML.trim() == '') remove++;
if (this.innerHTML == ' ') remove++;
if (this.innerHTML == '<b><span class="responsive-label">Description: </span></b> ') remove++;
});
Expand Down

0 comments on commit ffd1b05

Please sign in to comment.