From 3a3e65adaf3e4c7b92d1284e61ae89ffdf8ed5c3 Mon Sep 17 00:00:00 2001 From: WangTaoTheTonic Date: Sat, 10 Dec 2016 16:43:08 +0000 Subject: [SPARK-18606][HISTORYSERVER] remove useless elements while searching ## What changes were proposed in this pull request? When we search applications in HistoryServer, it will include all contents between tag, which including useless elemtns like " Closes #16031 from WangTaoTheTonic/span. --- core/src/main/resources/org/apache/spark/ui/static/historypage.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/src') diff --git a/core/src/main/resources/org/apache/spark/ui/static/historypage.js b/core/src/main/resources/org/apache/spark/ui/static/historypage.js index 8fd91865b0..54810edaf1 100644 --- a/core/src/main/resources/org/apache/spark/ui/static/historypage.js +++ b/core/src/main/resources/org/apache/spark/ui/static/historypage.js @@ -78,6 +78,12 @@ jQuery.extend( jQuery.fn.dataTableExt.oSort, { } } ); +jQuery.extend( jQuery.fn.dataTableExt.ofnSearch, { + "appid-numeric": function ( a ) { + return a.replace(/[\r\n]/g, " ").replace(/<.*?>/g, ""); + } +} ); + $(document).ajaxStop($.unblockUI); $(document).ajaxStart(function(){ $.blockUI({ message: '

Loading history summary...

'}); -- cgit v1.2.3