From 882a2a3d9d3b7039826185dd64ccedbfee998fcb Mon Sep 17 00:00:00 2001
From: Blake Gearin <blakegearin@pm.me>
Date: Fri, 30 Dec 2022 11:20:33 +0000
Subject: [PATCH] Add option to remove filter on table charts

---
 layouts/shortcodes/chart.html |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/layouts/shortcodes/chart.html b/layouts/shortcodes/chart.html
index 0c3842f..ad81b90 100644
--- a/layouts/shortcodes/chart.html
+++ b/layouts/shortcodes/chart.html
@@ -27,9 +27,11 @@
 {{- if in $charts "table" }}
 <script src = '{{ absURL "js/w3.js" }}'></script>
 <div class="table_wrap">
+  {{- if not (in $charts "noFilter") }}
   <p>
     <input oninput="w3.filterHTML('#chartTable', '.row', this.value)" class="form_search search_field" placeholder="Filter Table Values">
   </p>
+  {{- end }}
   <table id="chartTable">
     <thead>
       {{- range $index, $title := $data.columnTitles }}

--
Gitblit v1.10.0