From 580c94fe302ac013bd28007a5dd0be55fb3e49e8 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 11 Apr 2017 00:00:11 +0200 Subject: [PATCH] latin: remove empty sample column --- latinsample.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/latinsample.js b/latinsample.js index fa6b0f1..57e82fc 100644 --- a/latinsample.js +++ b/latinsample.js @@ -3,6 +3,10 @@ function appendsample() { for (var row of rows) { // append sample column var samplecol = row.getElementsByClassName('sample'); + if (!this.value.length) { + row.removeChild(samplecol[0]); + continue; + } if (samplecol.length) { samplecol = samplecol[0]; } -- 2.30.0