From 936325ac1358170106dcc071dba47fef077380f4 Mon Sep 17 00:00:00 2001 From: Kazuhiro Fujieda Date: Tue, 9 Apr 2019 22:06:24 +0900 Subject: [PATCH 1/1] =?utf8?q?=E5=90=84=E7=A8=AE=E5=A0=B1=E5=91=8A?= =?utf8?q?=E6=9B=B8=E3=81=AE=E8=A1=A8=E3=81=AE=E5=85=A8=E4=BD=93=E6=A4=9C?= =?utf8?q?=E7=B4=A2=E3=82=92=E6=AD=A3=E8=A6=8F=E8=A1=A8=E7=8F=BE=E3=81=AB?= =?utf8?q?=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- LogViewer/tags.tag | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/LogViewer/tags.tag b/LogViewer/tags.tag index 9521826..1d9611f 100644 --- a/LogViewer/tags.tag +++ b/LogViewer/tags.tag @@ -175,6 +175,7 @@ this.setHeaderAndFooter = function(table, header) { this.searchSetup = function(dTable) { self.setupCellSearch(dTable); + self.setupGlobalSearch(dTable); }; this.setupCellSearch = function(dTable) { @@ -187,6 +188,15 @@ this.setupCellSearch = function(dTable) { }); }; +this.setupGlobalSearch = function(dTable) { + var searchLabel = $(dTable.table().container()).find(".dataTables_filter label").first(); + searchLabel.html('Search: '); + searchLabel.children("input").first().on("input search", function() { + dTable.search(this.value, true, false).draw(); + }); + dTable.search(""); // reset +}; + this.show = function() { if (this.mainTab >= this.jsons.length) return; -- 2.11.0