diff options
author | WangTaoTheTonic <wangtao111@huawei.com> | 2016-12-10 16:43:08 +0000 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-12-10 16:43:08 +0000 |
commit | 3a3e65adaf3e4c7b92d1284e61ae89ffdf8ed5c3 (patch) | |
tree | 2c0a91b5161e706912cad17e77b196738da11094 /core/src/main/resources | |
parent | f3a3fed76cb74ecd0f46031f337576ce60f54fb2 (diff) | |
download | spark-3a3e65adaf3e4c7b92d1284e61ae89ffdf8ed5c3.tar.gz spark-3a3e65adaf3e4c7b92d1284e61ae89ffdf8ed5c3.tar.bz2 spark-3a3e65adaf3e4c7b92d1284e61ae89ffdf8ed5c3.zip |
[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 <td> tag, which including useless elemtns like "<span title...", "a href" and making results confused.
We should remove those to make it clear.
## How was this patch tested?
manual tests.
Before:
![before](https://cloud.githubusercontent.com/assets/5276001/20662840/28bcc874-b590-11e6-9115-12fb64e49898.jpg)
After:
![after](https://cloud.githubusercontent.com/assets/5276001/20662844/2f717af2-b590-11e6-97dc-a48b08a54247.jpg)
Author: WangTaoTheTonic <wangtao111@huawei.com>
Closes #16031 from WangTaoTheTonic/span.
Diffstat (limited to 'core/src/main/resources')
-rw-r--r-- | core/src/main/resources/org/apache/spark/ui/static/historypage.js | 6 |
1 files changed, 6 insertions, 0 deletions
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: '<h3>Loading history summary...</h3>'}); |